Hidden mandatory fields | XM Community
Skip to main content

Hi,

I’m using JS to hide and show fields, depending on some logic before. Due to some circumstances I can’t use the standards of Qualtrics (display logic etc.).

Now I’d like to add some mandatory fields. Unfortunately the system behaves the way it should: It asks for the mandatory answer, even though the field is currently hidden. 

Does anybody know:

  • Is there a way to programmatically make a field mandatory?
  • Or skip mandatory check when a field is hidden?
  • Or add some JS mandatory check without using Qualtrics mandatory rules?

Would be great to get in discussion with you 🙂!

Thanks!

Since the fileds are hidden using JS, we need to add validations as well using JS. So remove validation check via Qualtrics and create a duplicate next button, on click of which validation check will be done, if passed then click Qualtrics next button using JS.


Leave a Reply