Force response with JavaScript | XM Community
Skip to main content

I am currently using JavaScript to create in-page display logic for one of my dropdown menu questions. Some of the child questions have a force response validation attached to them. When I try to submit the survey I cannot because a required question is not answered even though it is still hidden by the JavaScript and selections made. Does anyone know a work around using JavaScript to make questions required only when they meet the proper logic and are unhidden and are not required when they are still hidden?

Thanks!

You could try looking at "enable/disable next button" based on your logic.


I would use custom validation for that, with "is not displayed" for the hidden fields.


I had the same problem and solve it by an alternative method. Hiding a question using JS does not mean disable it from being exist. Thus, the validation of that question is still handled by Qualtrics server.
The workaround can be by having a display logic for the questions which are having Force Response or Validation in order to avoid Qualtrics server to validate against that and instead, it should be appeared whenever its required to be answered only.


Leave a Reply