Validation to check if the categories are the same

Dear Survey Solution team ,

I wanted to know how we can check if the categories in the first question and the categories in the section questions are the same.

For example in the first question I have multiple sources of water that the HH has and the second question the main source of water for drinking(single select). How can i put a validation which checks that the categories in the second question should only be from the categories in the first multiple question.

Thank you in advance

Use the filter q1.Contains(@optioncode) to reduce the options in the second question to only ones selected in the first question. This removes the need to do the validation, as you will be making the choices only from the valid options.

Doing validation is also possible, but with a good likelihood the above this is a better approach.

Thank you Sergiy. It worked