How do i control the response from a previous question?

I am looking for a solution to the below-mentioned problem:

Q-1 Doctor for how long you suggested the medicine to your patience (Single code)

1- Up to 2 months
2- 3 to 6 months
3- 7 to 10 months
4- More than 10 months

Q-2 Doctor for how long your patience took the medicine (Single code)

1- Up to 2 months
2- 3 to 6 months (cannot select this option if selected option 1 in Q1)
3- 7 to 10 months (cannot select this option if selected option 1 or 2 in Q1)
4- More than 10 months (cannot select this option if selected **option 1, 2 or 3 in Q1)

Hi,
Welcome to the community forum.

What you are looking for in this is covered by validation criteria. However when you look at your validation criteria, you kind of have a clear logic which seems to point out to Q2>=Q1. With this in mind you can simply create constraint .<=${Q1}

This is the sample form User Support 08212020.xlsx (10.9 KB)

This will answer all your scenarios given by the following example.

Stephane

1 Like

Solved, Thank you so much.

Just for my understanding if we also had others option what should we do ?

Q-1 Doctor for how long you suggested the medicine to your patience (Single code)

1- Up to 2 months
2- 3 to 6 months
3- 7 to 10 months
4- More than 10 months
99- others

Q-2 Doctor for how long your patience took the medicine (Single code)

1- Up to 2 months
2- 3 to 6 months (cannot select this option if selected option 1 in Q1)
3- 7 to 10 months (cannot select this option if selected option 1 or 2 in Q1)
4- More than 10 months (cannot select this option if selected **option 1, 2 or 3 in Q1)
99- others

To use the same constraint I had suggested, could you change the code of Other to be 0. This would solve the issue.

1 Like

Hello @nalinsharma_2004,
Just a remark from an analytical view: Could it not be interesting also that a patient took the medicine longer than suggested (for example creating bad sight effects)? So, the constraint might become a warning (acknowledge type) only?
(Also, sometimes a doctor’s suggestion is not a fixed time but related to the symptoms.)
Keep healthy!

2 Likes