Can you have the edit link pointing to a form you are hosting on your own servers?

  • haydenross
    Asked on December 14, 2018 at 2:34 PM

    I have a form which after it is submitted sends an edit link to the reviewer, only I would like the link to open up the form on my server, as I downloaded the source code and I'm hosting the form myself. 

    Is there a way to do this?

  • Mike_G JotForm Support
    Replied on December 14, 2018 at 3:55 PM

    To my understanding, you are using the {edit_link} in the email notification/autoresponder sent to your reviewers so they can access the form submission in edit mode.

    1544820587t15 48 54 Screenshot 10

    I would like to let you know that the edit link can be constructed manually

    https://www.jotform.com/edit/{id}

    and the information on how you can do that is also explained in this guide — How-to-Change-the-Text-of-the-Edit-Link-in-Your-Email-Alerts

    Now, if you can find a way to pass the submission ID {id} to your own server programmatically after clicking a link in the email notification/autoresponder sent to the reviewers, then you can do that to open the form on your own server.

  • haydenross
    Replied on December 14, 2018 at 4:07 PM

    Okay, so I can pass the submission ID to the form which is on my server, is there a javascript function I can run to have it load the data and populate the form?

  • Mike_G JotForm Support
    Replied on December 14, 2018 at 7:01 PM

    Since it is not possible to inject script within the form due to security reasons, the only way is to pass the Submission ID through URL parameters to your website.

    Then, you can create the script on your website to get the Submission ID from the URL and append it to the value of the "src" attribute of an iframe that is embedded on our website forming this — src="https://www.jotform.com/edit/submissionID"

    Reference: https://stackoverflow.com/questions/814613/how-to-read-get-data-from-a-url-using-javascript


    In this Sample Form, I have used PHP instead.

    https://form.jotform.com/83476945467979

    Please submit the form and click the link in the email autoresponder sent to the email address you entered in the email field.