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

    Feature request: Set the default value of Bootstrap Switch Field widget?

    Asked by Deralict on January 08, 2015 at 06:59 PM

    There is no setting for default value for this widget, so can I use some custom javascript?

    Page URL:

  • Profile Image
    JotForm Support

    Answered by ashwin_d on January 08, 2015 at 10:54 PM

    Hello Deralict,

    Unfortunately it is currently not possible to set the default value of the "Bootstrap Switch Field" widget. Let me create a feature request and send it to our back end team. We will get back to you as soon as we have any update from them.

    No you cannot add custom JavaScript in your form or widget as for security reasons its already disabled. You can download your form's full source code and then add the required custom JavaScript code. Please be noted that you will not be able to import the source code back in JotForm and you will have to host it yourself.

    Thank you!

  • Profile Image
    JotForm Support

    Answered by TitusN on January 26, 2015 at 06:01 AM


    We have implemented this feature - you can set the default state from the widget settings: 

    Please reintegrate the widget on your form and check it out - share your experience with us.