Trying to create url that will work to populate form

  • mikeacce
    Asked on March 18, 2020 at 7:43 PM

    Hi, 


    I am trying to recreate a url that will allow me to pre-populate a form. I working on a approval process workflow.

    in my form the initial user completes the form. within that form there are lots of hidden fields that will be used by the person approving it. 

    I am trying to recreate the url to be used within the email that is sent to the person approving it that will pass a code to a field within the original form and unlock the hidden fields. 

    However, I can't get the value to be passed to the form regardless of what I do. 

    The url being used does work in the /edit/ format. Could this be why it is not working? 


    any help is appreciated. 


  • KrisLei Jotform Support
    Replied on March 18, 2020 at 8:30 PM

    Hi,

    You can refer to this guide on prepopulating a form via URL: Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters

    If you are looking on how to get the correct field names on the form, please check this guide: How-to-Find-Field-IDs-and-Names

    If you need further assistance, kindly provide the link of your for and your workflow for us o assist you further.

  • mikeacce
    Replied on March 18, 2020 at 8:38 PM

    Hi KrisLei, 

     

    Ya.. I already read these.. They are not working for me.. Or maybe I am missing something. 

    Here is the form I am trying to use. 

     

    https://form.jotform.com/92357336779270

     

    the form is called "Tenant Lease Termination Request"

    I have a e-mail response to this form that has the following HTML 

    //

    NOTICE TO TERMINATE LEASE 

    This e-mail represent the request for a tenant to terminate his lease. The tenant has submitted the reqeust electronically. You have been sent this e-mail because you are required to verify the request and approve the termination based on the follwoing criteria.

    a) Veriy the validity of the tenant requesting the termination

    b) Verify the date of the termination corrisponds to the allowable timeframe

    To process the termination request please click on the process request button and enter the office code in "Office Use Only" Field at the bottom of the request. 

    the office code is "6867575" 

    Trying to create url that will work to populate form Image 1 Screenshot 20

     

     

    //

    I use an button image within that e-mail which the approver will press within the e-mail to return to the approve page. The code behind the button is  https://www.jotform.com/form/{id}?officeUse22=6867575.. 

    I have also tried https://www.jotform.com/form/{id}??officeUse22=6867575 

    I did confirm that the field I am trying to enter the text 6867575 in is called officeUse22 this at least is according to Google page code inspection. 

     

  • Elton Support Team Lead
    Replied on March 18, 2020 at 9:33 PM

    Please use the actual form ID instead of {id}. The {id} tag will generate the submissions ID, not the form ID. So it should become like this:

    https://www.jotform.com/form/92357336779270?officeUse22=6867575

    This should work.

  • mikeacce
    Replied on March 18, 2020 at 10:26 PM

    you are correct now it works but I don't get any of the information inputed in the initial form? I need the submission id so that i can go and update the form. This is how the workflow process works. 


    Are we not able to pass values with the submission id?


    thanks


  • mikeacce
    Replied on March 18, 2020 at 11:04 PM

    The response does not go to you. It goes to me internally.. did you want me to change the e-mail address so it will go to you?


  • Sonnyfer JotForm Support
    Replied on March 18, 2020 at 11:11 PM

    Hello,

    Thanks but there's no need to change the notification email address for it to be sent to us.

    As for your previous question, you cannot pass values to another form using only the submission ID. You have to prepopulate your second form field by field.

    Kindly refer to the guides below that was also shared previously by my colleague.

    Prepopulating-Fields-to-Your-JotForm-via-URL-Parameters

    How-to-Find-Field-IDs-and-Names

    Kindly give it a try and let us know if you need further assistance.