What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.

  • Profile Image

    Required Bootstrap Switch widget won't accept 'No'

    Asked by Courty 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?


  • Profile Image
    JotForm Support

    Answered by BDAVID 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

    Answered by Courty on May 02, 2017 at 09:49 PM

    Great, thanks for letting me know!