Some JS files are missing when you download your form source code

  • Profile Image
    Asked on October 28, 2013 at 09:22 PM



    I have created the following form:

    I am trying to host it locally by downloading the source code and copying it to my web root directory. I have tried both using the provided html document as the index and using a custom index with the following html:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "">





    <iframe id="JotFormIFrame" onload="window.parent.scrollTo(0,0)" allowtransparency="true" src="registration.html" frameborder="0" style="width:100%; height:4384px; border:none;" scrolling="no"></iframe>


    <script type="text/javascript">window.handleIFrameMessage = function(e) {var args =":");var iframe = document.getElementById("JotFormIFrame");if (!iframe)return;switch (args[0]) {case "scrollIntoView":iframe.scrollIntoView();break;case "setHeight" = args[1] + "px";break;}};if (window.addEventListener) {window.addEventListener("message", handleIFrameMessage, false);} else if (window.attachEvent) {window.attachEvent("onmessage", handleIFrameMessage);}</script>





    In both cases the javascript doesnt work and the form is unavigable. I also get the following errors in the javascript console:


    GET http://localhost/images/styles/style1_bg.gif 404 (Not Found) registration.html:62

    As you can see this seems to indicate that there are missing files. Any help you can give on this would be greatly appreciated.

  • Profile Image
    Answered on October 28, 2013 at 09:59 PM

    Hello Trent,

    I'm sorry for the trouble caused to you.

    Have you downloaded your form's complete source code? When you download your form's source code it will also include the css and js folders. These folders have all the required files for your form to work. Please ensure that these folders are also uploaded to the same directory where you upload your form's HTML file.

    Here is a guide which should help you: You should download complete source code with css and js files. Check this screenshot:

    Hope this helps.

    Do get back to us if you have any questions.

    NOTE: Upon checking your account, I found that you have a guest account. That means you have not registered yet. Please register a free account using the same email address "" and this form will automatically move to your new account.

    Thank you!

  • Profile Image
    Answered on October 28, 2013 at 10:10 PM


    Yes this is the way i downloaded the source code. I also included the folders in the web root directory. 

    The js folder contains the files: calendarview.js, jotform.js, location.js, protoplus.js, protoplus-ui.js, prototype.js. There are no folders.

    The css folder contains the file calendarview.css and a folder called styles.

  • Profile Image
    Answered on October 28, 2013 at 11:41 PM

    Hello Trent,

    As the form you are trying to host is on your local server, we will not be able to check.

    Please share your index page source code where you have embed this from. You can use to upload your code.

    We will wait for your response.

    Thank you!

  • Profile Image
    Answered on October 28, 2013 at 11:56 PM

    Hi the source code is the same as in the first post. There is no other code.

  • Profile Image
    Answered on October 28, 2013 at 11:59 PM

    Here is the code in pastbin

  • Profile Image
    Answered on October 29, 2013 at 02:12 AM


    Thanks for reporting. I believed they are not yet included as of the moment.

    We will submit this to our developers for a review. Please take all the codes from Jotform for now and save them as js files if you want to host the files. You can get these files from the URLs below.


  • Profile Image
    Answered on October 29, 2013 at 03:57 PM

    Hi sorry for the inconvenience, this problem has been fixed now.
    Sources for the following will now be included once you download the zip file of the full source.

    *textbox - with input mask enabled
    *phone number - with input mask enabled
    *fileupload - with validate image enabled
    *filepicker when use to form
    *signature when use to form 

    some of mentioned above use jquery so it can probably solve missing jquery files.

    Please refrain to report missing files so that we can update the list.
    For now confirm if this working from your end.


  • Profile Image
    Answered on October 31, 2013 at 07:53 PM

    That has fixed the problem! Thank you all for your help!

  • Profile Image
    Answered on October 31, 2013 at 10:36 PM


    In behalf of the rest of the team, You are most welcome!

    We are glad to be any help with your JotForm needs.

    Please let us know if you need any assistance.

    Thank you for using JotForm.

  • Profile Image
    Answered on October 14, 2014 at 11:21 AM

    I don't think the files are are being included in the source download. I downloaded my source and the masked input js was not included
  • Profile Image
    Answered on October 14, 2014 at 01:35 PM

    @ jamesforpm

    I've moved your thread here even though it's partly related but it is a separate issue.