Validation code

Hello to all
I have a select on “yes-no” question that I would like to force to the answer “Yes”, that is to say that only the answer yes is possible, that the interviewer cannot have the possibility to check no

Hello @lorenz,

Do you think validation would solve your issue? Simple . = "Yes" might solve your issue if I understand you correctly.
https://support.kobotoolbox.org/validation_criteria.html

1 Like

Hello @lorenz,
Sorry, why do you ask the question if the answer is fix?
You could use a calculate type or a read_only variable with calculation.
You might also use an acknowledge type with required = true. So ticking OK would be the only option.

1 Like

Also, now there is a special kind of question: Acknowledge question type — KoboToolbox documentation
You can also use this one.

1 Like