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

    Adding a form script to a href "http://form.com"

    Asked by Tara2006 on July 31, 2015 at 12:06 AM

    I have coded a website using the bootstrap layout and the buttons are a bootstrap component, is it possible to make the bootstrap button when clicked go to my JotForm ??

    And by the way JotForms are the best, thank you for all the time and details you have put into these....

    Screenshot
    form script href adding a
  • Profile Image
    JotForm Support

    Answered by ashwin_d on July 31, 2015 at 05:10 AM

    Hello Tara2006,

    Please share the webpage URL where you have want to embed your form and we will take a look. 

    Do you want script to be written for the button which will redirect users to your JotForm? If you are not performing any other activity on the click of the button, you should just use anchor tag instead of button.

    Sample hyperlink code:

    <a target="_blank" href="YOUR_FORM_URL_GOES_HERE" class="btn btn-primary pull-left" style="float:none;text-align:center;">Explore&nbsp;<i class="fa fa-arrow-circle-right"></i></a>

     

    Sample bootstrap button with jquery script to redirect to any URL with button:

     

    <script src="~/Scripts/jquery-1.8.2.js"></script>

    <script src="~/Scripts/jquery-1.8.2.min.js"></script>

    <script type="text/javascript">

         $("#button").click(function () {

             alert("clicked");

             window.location.href = 'www.JotForm.com';

         });

    </script>

    <button type="button" class="btn btn-default" id="button">Default</button>

     

    Hope this helps.

    Do get back to us if you have any questions.

    Thank you!