Dependent answer on a previous question

Hi All

Please help in one type of question

Question 1 is having two options

18 time
25 time

in select one

We want that the answer of question 2 should not be more than , answered question 1 ,like if in case we choose 18 times , answer of second question can not exceed 18 and so on

Please guide

Hi @caneeraj,

Do you mean if you select 18 times in question 1, question 2 should be less then 18?

HAVE a GREAT DAY!

Yes exactly that’s what I mean

Hi @caneeraj,

You could do the same (in 2 different ways) as outlined in the image below:

In the survey tab of the xlsform:

In the choices tab of the xlsform:
Image 2

Reference xlsform:
Regex_Constraint.xlsx (11.0 KB)

Note: Option 1 is a method using select one question type while option 2 is a method using the regex constraint.

HAVE a GREAT DAY!

3 Likes

Thanks a lot Kal for supporting

Really this forum is awesome, I am getting help on instant basis

Much appreciated

2 Likes