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

    Where to put this JavaScript in order to make my form responsive?

    Asked by mubarackb2 on January 28, 2017 at 08:53 AM

    Hi! Where to put this JavaScript in order to make my form responsive i'm not familiar with java code 

    <script src="https://form.jotform.com/static/feedback2.js?3.3.REV" type="text/javascript">var parentWidth = window.innerWidth;if(window.innerWidth <= 499) {parentWidth = window.innerWidth-100;} else {parentWidth =  500;}console.log(parentWidth); new JotformFeedback({ formId: "63160537004951",buttonText: "Message Contact Form",base: "https://form.jotform.com/",background: "#F59202",fontColor: "#FFFFFF",buttonSide: "left",buttonAlign: "center",type: false,width: parentWidth,height: 500 });</script>

  • Profile Image
    JotForm Support

    Answered by John_Benson on January 28, 2017 at 09:41 AM

    Unfortunately, you cannot insert Javascript code in the Form Builder. However, you can download the form's source code and customize it. Here's a guide: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form

    Please check our widget mobile responsive, it will make your form mobile responsive. Here's how:

    Open your form and select the More Fields tab. Search for Mobile Responsive and drag it to your form.

    Hope that helps. If you have any questions or concerns, please contact us again. Thank you.