re-edit a form that is embeded in my site - iframe

  • flashbackproductions
    Asked on August 18, 2018 at 7:13 PM

    hello, i want my users to be able to edit the form after submmision.

    the edit link leads to the jotform site. 

    but my users needs to edit the form in my site where the form is embed in iframe.


    how can i lead the users to edit the from in my site with all the saved data?


  • Kevin Support Team Lead
    Replied on August 19, 2018 at 12:12 AM

    To do it you will need to implement some PHP code in a custom page, I would  recommend you to do the following: 

    1. Create and host a  page on your own server. 

    2. Use some PHP code to capture the submission id, example: 

    <?php

      $submissionid = $_GET['sid'];

    ?>

    3. Then you need to use the iFrame code with the following URL:

    <iframe

         id="JotFormIFrame"

         onDISABLEDload="window.parent.scrollTo(0,0)"

         allowtransparency="true"

         src="https://www.jotform.com/edit/<?php echo $submissionid; ?>"

         frameborder="0"

         style="width:100%;

         height: 8815px;

         border:none;"

         scrolling="yes">

       </iframe>

    4. The last step is to provide the custom  submission edit link to your submitter, you may use this one: 

    www.mywebsite.com/editsubmission.php?sid={id}

    Applying the steps correctly should work, please see the example working here: https://shots.jotform.com/kevin/Content/Samples/getTest.php?sid=4077596355122271208 

    I hope this helps. 


  • flashbackproductions
    Replied on August 19, 2018 at 6:43 AM
    hi. i am using a site like wix.(folyou).
    i can edit html of a page.
    where i place the php code? in the start of the html?
    and then the iframe?
    how do i make the edit link? i need it to generate automaticly on the user
    autoresponder mail.
    בתאריך יום א׳, 19 באוג׳ 2018, 07:12, מאת JotForm ‏:
    ...
  • Victoria_K
    Replied on August 19, 2018 at 9:31 AM

    Hello,

    Unfortunately, WIX and other CMS will reject the links in a format of www.mywebsite.com/editsubmission.php?sid={id} for security reasons. 

    You may consider hiring a developer to set up a custom page, which would not have restrictions as to 'X-Frame-Options'. If this is acceptable for you, then you may generate edit links for every submission using the provided example: www.mywebsite.com/editsubmission.php?sid={id}, where {id} will create a unique link for every respondent.

    Hope this helps!