Embedding Javascript

  • Profile Image
    JustSport
    Asked on March 09, 2017 at 03:17 AM

    I know there are a few questions about embedding Javascript ( or the lack of ) into a JotForm. The standard answer is to use the source code, embed your JS or reference to it in there and then embed the source in your web page.

    The problem with this is everytime you change your form in Jotform, you have to go through the whole process again.

     

    Is it not possible to add an option to Jotform to say something like "Javascript file to include".

    You place the source file in there e.g http://domain.com/js/registration.js"

    Then you can then simply embed the link to the jotForm in your page and when you change either the javascript ( outside of jotform ) or the form itself, the web page has the latest updates ?

     

  • Profile Image
    liyam
    Answered on March 09, 2017 at 04:10 AM

    Hello JustSport,

    Unfortunately this is not possible. If you want to embed a form on a page where it will instantly update everytime you make a change on the form builder, your choices are javascript embed code or iframe embed code. But if you wish to customize your form further that is beyond the limits of JotForm, you will need the full source code, which the downside is that it will not update immediately on your webpage when you make changes on the form builder and vice versa.

    Insertions of javascript codes and files are not allowed on the builder or even for reference as this raises some security concerns directly with JotForm. 

    If you have other questions, please let us know.