Custom Code Once Form Submitted

  • Richard_Neilson
    Asked on December 29, 2020 at 4:31 PM

    Is there a way to add custom code (JavaScript and CSS) on the 'submitted successfully' page? For example, a link to a payment gateway (e.g. SnipCart or Stripe Checkout) that is specific to the product/service that the form relates to.

    I know that payment can be taken within the form directly, but I would like to keep all transactions in one dashboard, not those collected directly from forms separate to other transactions on my site where a form is not used. I would also like customers to be able to purchase in the future, referencing their first form submission, without the need to complete the same form each time.

    Thank you in advance for your assistance.

  • Mike_G JotForm Support
    Replied on December 29, 2020 at 6:12 PM

    We would like to apologize for any inconvenience. Although you can edit the source code of the Thank-You page of your form, custom Javascript injection is not possible for security reasons.

    1609283424 5febb760862a1 zt201229 180947 Screenshot 10

    As for styling the Thank-You page using custom CSS codes, you may only use inline CSS by using the style attribute inside HTML elements.

    However, please know that you can also just redirect your form to your own web page, where you can use your own custom codes, after a submission. Reference Guide: Redirecting-Users-to-a-Different-Page

    Feel free to let us know if you need any further assistance.