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

  • Profile Image
    Asked 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
    Answered 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.