Hello! I’m creating a custom validation via the survey flow, where I will be asking the same question twice (in the beginning and in the middle of the survey). Basically, I’m trying to see whether the participant chooses the same answer when asked twice.
One validation question I’m thinking is checking if the participants choose the same state from the dropdown menu. The following is how the question looks like and its respective JS script. Moreover, I’ve already set the embedded variables in the front of the survey flow:
The following is an image of the survey flow
Basically, I’m trying to see whether the input answers from State1 and State2 match with each other. If they do not, the survey will end immediately.
However, even after I put in the same answer for State1 and State2, the survey ends immediately. I could use some guidance or help on how to fix this or implement a better efficient way to validate using two answers from two drop down questions.
Thank you!