Why is js file inclided in zip?

  • kccochemung
    Asked on April 19, 2018 at 1:56 PM

    We have done a few forms using source code by means of the zip folder. You have the css and js folders in there, but are not referenced in the html code which is proven by simply removing the js and css folders and everything still works. 

    When I changed the html to reference the css and js, the css worked but the scripts did not function properly.

    So why have them there at all if they are not useable? Or if they are (which we prefer) what do we need to do to use them instead of linking to yours?


  • Adrian
    Replied on April 19, 2018 at 2:50 PM

    You have the css and js folders in there, but are not referenced in the html code which is proven by simply removing the js and css folders and everything still works. 

    That is correct. The files from the CDN are referenced by default.

    When I changed the html to reference the css and js, the css worked but the scripts did not function properly.

    So why have them there at all if they are not useable? Or if they are (which we prefer) what do we need to do to use them instead of linking to yours?

    Depending on the form elements used, there can be different JavaScript files included.

    For your most recent edited form, there should be three.

    Why is js file inclided in zip? Image 10

    I can see that they are not included in the js folder when the Source Code is downloaded.

    Feel free to download them from the CDN to your local machine and then you can reference them locally.

    https://cdn.jotfor.ms/js/vendor/imageinfo.js?v=3.3.5714
    https://cdn.jotfor.ms/static/prototype.forms.js
    https://cdn.jotfor.ms/static/jotform.forms.js?3.3.5714

    Please note that these files may change during the time as new features are added.

    You also need to re-download the form's source code if you make changes to your form.