Do not clear session when form is submitted

  • flashbackproductions
    Asked on May 28, 2020 at 7:25 AM

    hello. i have a form that a user uploads pictures and text and then an automated system makes a movie from it and sends it back to the user.

    i am using 2 forms to save and return - i hate the  the new "save and return" option is not good yet and very confusing, cant be translated to hebrew (only the mail can be translated) and a user cant edit the same form with 2 different submmitions and the same email. 

    the 1st form is the "registration" embeded to my site and sends link to the user mail,
    and the 2nd form is embeded in my site  using an email session so a user and edit the form, and come back to it later for editing.

    the problem is that a user needs to test the automated system b4 he pays to see the results.
    so the user submmiting the form with "test" option and  the automated system  sending him a "draf" movie.

    after the user is happy, he need to come back to the form and choose payment option (via paypal for exsample) . the user will use the link that get from the 1st form.

    the problem is that after submmition, the session is been deleted for the user! 

    i can send him the edit link but
    1- i cant embed it to my site (can i pass the edit link via url parameter?)
    2-the edit link dont  save the changes as an email session saves them.
    3- i cant use the paypal option enymore after submittion and returning to the form for editing. 

    there is a way that a a session will not be deleted after submmition?
    or to solve the 3 problems with the edit link?

    thank you.

  • John Support Team Lead
    Replied on May 28, 2020 at 8:57 AM

    Unfortunately, once the form is completed, the saved session will automatically be deleted.

    1- i cant embed it to my site (can i pass the edit link via url parameter?)

    You can embed the form as iframe and replace the "src" property with the edit link:

    Do not clear session when form is submitted Image 10

    Here's an example webpage where I embedded the edit link of a form using iframe: https://shots.jotform.com/johnrex/2352356.html 

    However, the problem is that you need to embed the form manually, I mean every time a new submission is made.

    So I suggest providing the edit link via email instead.

    GUIDEGetting-the-Form-iFrame-Code 

    2-the edit link dont  save the changes as an email session saves them.

    Yes. Edit link allows the user to make changes to the form and if he would like to apply the changes, he needs to resubmit it.

    3- i cant use the paypal option enymore after submittion and returning to the form for editing. 

    Unfortunately, payment fields will be disabled when editing the submission. So I think a best workaround for that is to use a separate form with the Paypal field in it then just redirect the user to the said form in case he needs to settle the payment.

    Here's how:

    1. Add a Single Choice field to the form asking the user if he wants to pay:

    Do not clear session when form is submitted Image 21

    2. Create a condition that will redirect the user to the Paypal form once he submits the first form:

    15906709242352504 2 Screenshot 32

    GUIDEChange-Thank-You-Page-URL-Based-on-a-Condition 

    You can test it here: https://shots.jotform.com/johnrex/2352356.html 

  • flashbackproductions
    Replied on May 28, 2020 at 11:07 AM

    there is a way not to delete the session? 

    mabey there is a way to send mail without submmiting the form?

    there is a way to manually recover a submitted form?

    none of the solutions you wrote can work for me...

    its been 10000km trip, and only 1cm that will connect everything  is missing...please help me on this....

  • Ashwin JotForm Support
    Replied on May 28, 2020 at 11:49 AM

    I am afraid but it is not possible to achieve your requirement. As soon as a form is submitted, the data saved in session will be deleted automatically. 

    Please note that emails are sent only when the form is submitted. It is not possible to trigger any email alert before form submission.

    there is a way to manually recover a submitted form?

    I am not sure if I have understood your question correctly. Can you please explain your this question a bit more in detail?

    We will wait for your response.

  • flashbackproductions
    Replied on May 28, 2020 at 12:10 PM

    i need a way that a user will be able to save his data after submitting a form. can i do somthing in my admin console (on "my forms" etc.) that can make is form mark as unsubmitted?

    or at least keep the user on my site on edit link, (not to write an embed code for each user!).

  • Lorenz JotForm Support
    Replied on May 28, 2020 at 1:53 PM

    Hi,

    Unfortunately, aside from the save and continue later feature, the edit URL sent to email is the only option left for users to view and edit their submitted data, however, as what is mentioned above the payment method is disabled when editing the submission. Maybe you can try creating a 3rd form with a payment option. Pass the submitted data in form 1 to form 3 using a URL parameter, then instead of sending an edit link of form 1, you can send a link of form 3, which has the URL parameters. 

    https://www.jotform.com/help/351-How-to-Automatically-Pass-Form-Data-to-Another-Form

  • flashbackproductions
    Replied on May 30, 2020 at 5:49 PM

    ok i got the 3rd payment form idea, and understand it.
    i will create a global payment form for all my forms that will be redirected to the payment form.

    i can pass the url parameter with a custom url in thank you page?


    the only problem is how the keep the users on my site? i dont want them to see the jotform site when they need to edit ...

    why cant i pass the edit link as the url parameters to my site? i am doing this with the save and return old system... and keeping my users on my site..

    can you help me on this please?

  • Amin JotForm Support
    Replied on May 31, 2020 at 12:43 AM

    Hi again, @flashbackproductions!

    Your workaround is actually doable. One method I can think of for having respondent to edit submission without leaving your website is doing some development for your website to fetch HTTP request, get submission ID, then automatically generate custom iFrame code, and finally inject it into website source code. Unfortunately, we do not provide support for such cases. You may hire a developer to write custom middleware for this to work.

    Should you have any further inquiries, we will be more than happy to help.