How to add custom javascript to a form?

  • Profile Image
    Asked on August 09, 2016 at 05:04 PM

    I would like to add custom javascript to a form so I can calculate and display my customers weekly price before they submit their form (its for a service business). I would also like to be able to include this in auto reply emails, and dump it into my Google Spreadsheets integration along with the rest of their form data, however, it cannot be editable. Simply a formula as a result of their answers.


    How might I be able to do this?




    Page URL:

  • Profile Image
    Answered on August 09, 2016 at 06:57 PM

    Unfortunately, it's not possible in the form builder. Why not use our calculation widget to do that?

    I can see that you are trying to pipe the result in the text field, that is also now possible in Jotform.

    Just get the field name and paste it in the text field: 

    Here's a test form with piping added in the text field: Fill the name and email to see the result.


    If you prefer to do it by Javascript, you can get the source codes: Modify the source codes to suit your needs before embedding it to your website.