Required Bootstrap Switch widget won't accept 'No'

  • Courty
    Asked on May 2, 2017 at 7:53 PM

    Hi there, I am building a Playground Inspection form that has a number of Bootstrap Switch widgets and I am getting some unexpected behaviour.

    The switches are set as 'Required', with a default state of 'Yes'. However, if I select 'No' and attempt to submit the form, I get the 'This field is required' message. 

    I note that if I select 'Yes', the error doesn't appear.

    Have I done something wrong in the setup?

    Thanks,
    Michael

    Jotform Thread 1134572 Screenshot
  • David JotForm Support Manager
    Replied on May 2, 2017 at 9:33 PM

    When enabling the "required" validation on that widget, it means that the user has to switch to ON state. That is the reason why it will not allow submitting the form with the OFF state.

    Let us know if you have more questions.

  • Courty
    Replied on May 2, 2017 at 9:49 PM

    Great, thanks for letting me know!