Custom Validation for numeric questions


Hi All, 

I am trying to do a custom validation for a van westendorp pricing analysis.  So for example, I need the max below for Q2  to be lower than Q1 below, but I am having problems with custom validation. 


Q1; At what price would you consider this product to be a bargain?

Q2: At what price would you consider this product to be so inexpensive that you would question the quality? 






Stephen Newman answered

    You would have to create this capability using custom scripting (if it is available in your account).

    The first step would be to use the getvalue function to get the answer to question Q1.  The next step would involve whatever calculations you would need to formulate the max value for Q2 .  And the final step would be to use the setquestionproperty function to set the max_number value to your calculated value.  The documentation for these functions has working examples that you can use to guide your development.  

    If you don’t have the skill or patience to develop your custom script  SurveyGizmo offers programming services.


    Good luck!

    Jim W (Moderator) answered

      This is definitely possible using Custom Scripting as Jim says, but I find using Javascript to accomplish this provides a better experience for the end user (gives real-time feedback/error messaging without having them submit the page and taking them back). I’ve developed surveys that incorporate Van Westendorp before, and I’m available for consulting at the moment, so let me know if you need a hand!

      kimstewart commented
        • Hi Caitlin, can you contact me I would like to take you up on helping me do the custom scripting for validation for VW model What would you charge for this?


        I am not a programmer, but if someone has a sample script I can probably modify it to my questions.  I really need Van Westendorp validation.  Can anyone share?

        Stephen Newman answered


          Question stats

          • Active
          • Views5090 times
          • Answers3 answers
          • Followers1 follower