-
XteticAsked on August 19, 2025 at 3:53 PM
I am inserting a JotForm form in this way:
<script type="text/javascript" src="https://form.jotform.com/jsform/0000"></script>"> </script>
and I need to detect with JavaScript when a user completes the form correctly and reaches the thank you page.
-
Podo: Support AI AgentReplied on August 19, 2025 at 3:53 PM
Hi Xtetic,
Thanks for reaching out to Jotform Support. I'm an AI assistant. I'll do my best to help you until someone from the support team is available.
Currently, detecting a successful form submission and reaching the thank you page using JavaScript embedded in the form script is not supported due to security updates that prevent custom scripts from running on the Thank You page.
However, you can set up your form to redirect users to an external URL after submission. This way, you can detect the submission by monitoring the external page. To do this:
- Go to Form Builder and open your form.
- Click on the Settings tab and then select the Thank You Page tab.
- Choose Redirect to an external link after submission and enter your custom URL.
This method allows you to detect successful submissions by tracking visits to your custom thank you page.
Give it a try and let us know how it goes.
Best regards,
Jotform Support -
Ronald JotForm SupportReplied on August 19, 2025 at 4:23 PM
Hi Xtetic,
Thanks for reaching out to Jotform Support. When a form is successfully submitted and the Thank You page loads, the embedded form sends a message back to the parent page. This postMessage event contains an action called submission-completed. Take a look at the screenshot below to see my results:
That means if you set up an event listener on your website, you can listen for this message and use it to trigger whatever action you need such as firing an analytics event, showing a confirmation, or redirecting the user.
We don't provide custom form creation or designing services, but you're welcome to work with a third party who may be able to help you. You can check out our Jotform Solutions Partner Directory for a list of consultants who've asked to be included.
You can get in touch with the right Solutions Partner for you by sorting them by location, type of service, industry, language support, or partner tier. Just fill out the contact form for the Jotform partner you'd like to work with, so they can make the necessary preparations to help you.
Keep in mind, though, that these parties operate independently of Jotform, so we assume no responsibility or liability for their work or their actions.
Let us know if you have any other questions.