Hidden mandatory fields | XM Community
Solved

Hidden mandatory fields

  • 15 March 2024
  • 1 reply
  • 16 views

Badge +3

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!

icon

Best answer by Shashi 15 March 2024, 11:23

View original

1 reply

Userlevel 6
Badge +27

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