Required Bootstrap Switch widget won't accept 'No'

  • Profile Image
    Courty
    Asked on May 02, 2017 at 07: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

  • Profile Image
    BDAVID
    Answered on May 02, 2017 at 09: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.

  • Profile Image
    Courty
    Answered on May 02, 2017 at 09:49 PM

    Great, thanks for letting me know!