Is it possible to press a button on my form that executes a javascript to populate a field value on a jotform form?

  • zoiglobal
    Asked on March 11, 2017 at 7:54 PM

    I do not have the form built as of now, as I am mulling over my options to accomplish the question I am asking.

     

    Denise

  • Welvin Support Team Lead
    Replied on March 12, 2017 at 6:40 AM

    You can trigger a field to populate another field in the form. You just need to conditionally do it. Here's our guide:

    https://www.jotform.com/help/268-How-to-Insert-Text-or-Mathematical-Caculation-into-a-field-using-a-Condition

    As for the button, you can use our checkbox/radio button field then add a custom CSS codes to make it look like a button.

    Example: https://www.jotform.com/70702313384954.

     

  • zoiglobal
    Replied on March 16, 2017 at 6:29 AM

    Thank you, Welvin, for your answer.  However, my form will be used side-by-side with data derived from a website.  I need to pass the website derived data to my jotform.  I have screen-scraped the information and believe I need to execute a Javascript to place the website data in my jotform form.

    Any advise on how to execute a javascript and/or obtain the externally derived values and place on jotform form?

     

    Denise

  • Welvin Support Team Lead
    Replied on March 16, 2017 at 8:37 AM

    You can download the form source codes: https://www.jotform.com/help/104-How-to-get-the-Full-Source-Code-of-your-Form. You can then add the script in the source codes. However, you cannot import back the modified source codes in the form builder, so you will need to embed it that way. 

    Note that the changes in the form builder are not automatically shown in the form source so it is recommended to finish the form first.

    Let us know if you need further assistance.