Answer Validation – comparison with another response

0

Consider for example the following questions answered by an adult:

  1. How many people live in your house? [validation allows only positive numbers]
  2. How many people with less than 15 years live in your house? [only numbers]

Is it possible to force the response of question 2 to be less than the response given in question 1?

I tried to use hidden values but I can’t manage to use it in validation…

AdrianaMatias answered
    0

    Thank you@Dominic !

    It was quite simple using those functions: 

    %%questionID = 481;
    %%property = ‘max_number’;
    %%value = sgapiGetValue(485);

    sgapiSetQuestionProperty(%%questionID, %%property, %%value);

     

    AdrianaMatias answered
      0

      This is not possible as an out-of-the-box solution but could be done with the use of SurveyGizmo’s Custom Scripting:

      https://script.surveygizmo.com/help

      It looks like a user previously asked a similar question and got a little direction in terms of which functions would need to be used:

      https://community.surveygizmo.com/questions/question/logicvalidation-numbers-set-validation-number-question-based-answer-previous-number-question/

      Hope this helps!

      Dominic Sharpe answered
        ×

        Login

        Question stats

        • Active
        • Views2440 times
        • Answers2 answers
        • Followers1 follower