how to disable a question if the previous "Pick, group and rank" question has been answered | XM Community
Skip to main content

Hello everyone,
I have the following pair of question, consisting of a "Pick, group and rank" question and a multiple-choice question with a single option that says "Leave this box blank".
Screen Shot 2022-01-24 at 08.55.06.pngBasically, I want to keep participants from checking the "Leave this box blank" option if they have put any item in the box. I have already set up a validation that forces them to either put an item in a box OR check the option, and I cannot figure out how to come up with another validation that does not conflict with my existing one.
Please let me know if you have any clarification questions or suggestions. Thank you so much for your help in advance!

I'm not sure if you would want to do this, but one option would be to make "Leave this box blank" one of the Item choices. This way, the options would be "An apple", "An orange", "A lemon", and "Leave this box blank".
Then set up "Force response" and "Add validation" so they can only select a max of 1. This way they would have to respond to the question and select one of the options. Although I would caution forcing a response if it isn't necessary.


@CRQualtrics
Thank you for your comment! Yeah I used to have a design where there was a "Nothing" option alongside the other items instead of a separate checkbox, but we decided that we didn't want that. Please let me know if you can think of any other solutions. Thanks again!


mtakahas ,
You could use JS to disable the checkbox if any choices are in the answer box and enable it all choices are removed from the answer box. Use mouseup and touchend events.


Hi TomG , thank you for your suggestion! Could you tell me where I can add the mouseup and touchend events, and what might a code look like? I'm sorry for the beginner questions - I will try my best to find solutions myself too. Thank you again!


Leave a Reply