How to edit form submission and pass a value between two forms

  • jotform1212
    Asked on March 11, 2017 at 10:05 PM

    A have a work order template consists of 2 forms - header and detail forms. A manager fills up these forms and get sent to technicians.  The technician clicks a link in Header form redirecting them to the detail form showing details of work order.  When technician is done filling up the detail form, they click Submit which redirects them back to the header form.  Now, I would like to pass a value from the detail form back to the header.  I need this value in the header form so I can show that a task has been completed.  How do I pass this value to header form?

    This is what I got so far:

    1) Header form with links to detail form -- done

    2) Detail form Submit button Thank You page redirects the user back to Header form -- done.  Below is the url back to header form

    http://submit.jotform.com/form.php?formID={HeaderFormId}&sid={HeaderFormSubmissionId}&mode=edit

    3) Pass value back to header form --- not done yet

    Many thanks in advance.

     

    Jotform Thread 1089179 Screenshot
  • Welvin Support Team Lead
    Replied on March 12, 2017 at 7:20 AM

    You cannot pass it directly to a text link in the form. A workaround would be to target a textbox in the header form. Make it as a read-only field so it cannot be edited. Please try a textbox, do the same method of passing data using the field name.

    http://submit.jotform.com/form.php?formID={HeaderFormId}&sid={HeaderFormSubmissionId}&mode=edit&fieldName=This task is complete

    Notice the bold line above, that's how you will append the data in the edit URL. 

    Let us know if you need further assistance.

  • jotform1212
    Replied on March 13, 2017 at 12:06 PM

    To follow your instructions, in Header form I created a read-only Textbox:

    Unique Name: activitySubmission

    Field IDs: #input_292

    In the activity form (detail) I revised the redirect to URL link:

    http://submit.jotform.com/form.php?formID={HeaderFormId}&sid={HeaderFormSubmissionId}&mode=edit&activitySubmission=999

    When I'm redirected back to the Header form, I see all previous submission entries but the Textbox {activitySubmission} is blank.  I expected it to show the value 999 passed from detail form.

  • Welvin Support Team Lead
    Replied on March 13, 2017 at 1:27 PM

    I got it to work:

    http://submit.jotform.com/form.php?formID=70653993889983&sid=365234573612198413&mode=edit&studentName=JOTFORM

    Would you mind letting me know the URLs of the forms used in this thread? Or, the actual edit URL with the data in it. Let me check it. 

  • jotform1212
    Replied on March 13, 2017 at 1:53 PM

    Nope, it did not work.  :(

    JOTFORM shows for a quick split second in Student Name textbox then disappears leaving the textbox is blank.

    Thanks for helping, though.  I can't share the forms as of yet until I get clearance from the client.

    You are on the right track, this is exactly the issue I am trying to resolve. Any other thoughts?

     

  • Welvin Support Team Lead
    Replied on March 13, 2017 at 4:19 PM

    Yes, I just figured it out it's not working. I have created a new form to test it.

    http://submit.jotform.com/form.php?formID=70716524659968&sid=365244389612425339&mode=edit&customField=JOTFORM

    I will have to create a ticket regarding this matter. This used to work before, but maybe our backend team made an update causing this glitch. I'll let you know here if I get some updates.

    For the meantime, you can do this workaround:

    1. Hide the textbox field.

    2. Use the new edit link.

    3. Fill in the textbox manually.

    Example: https://www.jotform.com/edit/365244389612425339. The "Custom Field" is hidden in the form view.

    https://www.jotform.com/70716524659968