How do I update the words in Get Page URL

  • Profile Image
    sparikh
    Asked on January 20, 2022 at 11:42 AM

    Hi, I'm following the example in https://www.jotform.com/answers/1514831-multi-tiered-approval-process

    In that example, one of the conditions looks for Get Page URL containing "process."

    1642690856_61e97928f114d_

    I can't figure out how they include the word "process." They also use words "recommender" and "review" in other triggers.

    I see that Get Page URL naturally trigger on the word "edit" but how do you embed these words like "process" in the URL? Thanks!

  • Profile Image
    Samuel
    Answered on January 20, 2022 at 02:30 PM

    Hi there,

    They're getting that from the Form URL itself.

    Basically what's happening is they're checking in the form what kind of service the user needs from their staff. Those services are divided into "process", "recommender", and "review". They check this via the conditions. Here's one of the conditions on the form:

    1642705892_61e9b3e454005_

    Then, once they're able to confirm what the user needs, they then send an email to the staff that handles just that. Here's how it goes:

    Here's the condition.

    1642706026_61e9b46a8a4be_

    Then if it passes this condition, this email is being sent to the staff. Notice that there's a hyperlink there for an edit link?

    1642706089_61e9b4a9219ce_

    That hyperlink is going to the form's edit link for the submission. That's why the form URL that you saw, has the "/edit/" part on it.

    1642706538_61e9b66a3db4d_

    And the following Edit Submission URLs are being used for our workflow process:

    1. Request for Review: https://www.jotform.com/edit/{id}?requestFor=review
    2. Request for Recommendation: https://www.jotform.com/edit/{id}?requestFor=recommender
    3. Request for Approval: https://www.jotform.com/edit/{id}?requestFor=process

    The URL you saw is being used to let the form know that this staff member is here to edit the submission with {id} and that the form needs to show the needed area by the staff. Please note that the {id} here maps to the Submission ID (the current submission). Here's the condition that does that:

    1642706500_61e9b6440e917_

    Here's a guide that can help you in creating a similar URL for your form if you need it: Prepopulating Fields to Your Jotform via URL Parameters

    I hope this information helps. If you need further help, please don't hesitate to reach back out to us. Thank you!