Force Response with Custom Validation | XM Community
Skip to main content

I have a Matrix Table of three Likert 0-10 rating questions. In the same block I have a text box question.
I want to Force response to the text box only when they give any of the above questions a score of 7 or lower.
I am trying to use custom validation on the text box but it’s not working for me.
Validation: Force Response
Validation Type: Custom Validation
I have only set up one of the three questions. I will need to repeat the below for the other 2 questions once I figure it out. I have a custom error message set up.
image.pngIs what I am trying possible. What do I need to do? Thank you!

Hi Kari,
There are different ways to approach this, but the custom validation logic you shared does not appear to be set up to do what you want. It is going to require that the respondent choose 8, 9, 10, or N/A, no matter if they leave the text box blank or not. It will not let the respondent pass if 0-7 are selected.
What I would ask first is, does the text box apply if 8-10 are selected? If not, then I would use Display Logic so that the text box only appears when 0-7 are selected, and use Force Response validation on the text box (do not use Custom Validation).
image.png
If the text box should appear to all respondents, but is only required when 0-7 are selected, then use Custom Validation on the text box, not Force Response. The Custom Validation would be something like the following partial example:
image.png


Hi Dave, Thanks SO much for your response. The last method is the way I want to do it!
I've got it set up as indicated and it's semi working.
When I had nothing added for questions 8+ it would give them the force response message so I had to add something. Sample of my logic difference between the 7 and under scores and 8+.
image.pngMy new issue is that I have 3 matrix/likert questions tied to the text box. So if they select two score 10s and one 7, I want them to be forced to add comments based on the one 7. Currently the one 10 allows them to get through. I can't think through how to do that logic.
Hope that makes sense.


I think the force message is happening because Q7 still has Force Response selected, but it doesn't have to be. Try making Q7 optional and it should work better because you're already requiring it in the Custom Validation above.
For tying three Matrix questions to the text box in Custom Validation, I would use the "Recode" option for the three statements in your Matrix question.
image.png


That is perfect. Thank you SO much. :)


Hello

Can someone help me with my problem:
I have a survey, where I have to force the respondent to leave a comment if in another question he made a score of 6 or less....
I did the following but it doesn't work:
To the Q which is a comment, I put Force Response and added the custom validations

 

I also tried to check Request Reply and with those custom validations, but it doesn't work either…

Thanks


Leave a Reply