How can I add custom JS to my form?

  • Profile Image
    Juan Baires 
    Asked on June 03, 2020 at 09:09 PM

    Hi guys!
    We have a form that we have to track by adding a JS code at the form, but when we try to add from the site, this have a CORS error.

    So we need to add the custom js at the form builder, but I couldn't find where or how to do this.

    can you help me?


    Thanks guys!

  • Profile Image
    Ashwin
    Answered on June 04, 2020 at 02:47 AM

    Unfortunately it is not possible to add custom JavaScript code in form for security reasons. If you want to add custom JavaScript code in your form, you need to download your form's full source code and add the JS code. The following guide should help you how to download your form's full source code: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form

    Please note that once your add custom JS code in form's source code, you will have to host the form in your own server.

    Hope this helps.

    Do get back to us if you have any questions.