Is it possible to pass JS params into the widget as it's loaded?

  • Profile Image
    Gallant_Emil
    Asked on July 29, 2025 at 4:25 PM
    Is it possible to pass JS params into the widget as it's loaded? I've created an API endpoint to test the referrer value of the calls, but it's set to the www.jotforum.com domain so that didn't pan out.
  • Profile Image
    Reymae JotForm Support
    Replied on July 29, 2025 at 6:01 PM

    Hi Emil,

    Thanks for reaching out to Jotform Support. Unfortunately, our form builder does not accept JavaScript codes 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. Once you add the custom JS code in form's source code, you will have to host the form in your own server.

    Let us know if you have any other questions.

  • Profile Image
    Gallant_Emil
    Replied on July 30, 2025 at 9:48 AM


    This is only part of the original question and is missing the critical context of being asked about AI Agents, not forms. Support should have just answered the entirety of the original and stop making more work for people looking for help.

  • Profile Image
    Jovito JotForm Support
    Replied on July 30, 2025 at 10:24 AM

    Hi Emil,

    I understand your concern on separating the ticket into different threads. You can respond on your main thread and provide some more context on the requirement you want so we can connect it. Also, to clarify, Jotform does not allow direct JavaScript code injection into forms or widgets for security reasons. When it comes to AI Agents, which are designed to guide users through forms interactively, you can create and customize AI Agents based on your existing forms using Jotform's AI Agent Builder. But passing JavaScript parameters into widgets as they load is not yet support at this time.

    Let us know if you have any other questions.