Skip to content
Advertisement

How to save Gravity form data for non-logged in user

I have created a multi-step gravity form.

Here , any users ( Logged In / Non-Logged In ) can see this form.

Talking about Non-Logged In users , if the user visits the form and fill the form by completinging ALL 6 steps , and when at the end , User submit Form , One Login POP-UP will be shown.( As shown in screen-shot) It will redirect the user to the login page.

enter image description here

enter image description here

My requirement is : After successful login , the user will be redirect to same Gravity form page , and on Last (6th step ) , with all details pre-filled.

How do I generate “Save and Continue Later” LINK for Non-Logged In users and when user clicks on “SUBMIT” button

EDIT :

Gravity form also have this “Save and Continue Later” functionality ( As shown in the screen-shot ) , which generate LINK like this https://site_url/page-name/?gf_token=some_token , and we can use this link to RESUME form .

enter image description here

But that link redirects to the page shown in the below screens-shot

enter image description here

But I want to generate this LINK , on SUBMIT FORM click button and YET redirect to LOGIN PAGE

Advertisement

Answer

You can use jQuery way here!

For Non-Logged In users :

  1. Hide the form SUBMIT button.
  2. Then, SHOW “Save and Continue Later” link , for only LAST PAGE of your multi-step form.
  3. Add CSS “Save and Continue Later” link , same as SUBMIT button.
  4. On click of “Save and Continue Later” link , hide the content , that you have showed in the last screen-shot.
  5. Save that generated link in the COOKIE , and use that COOKIE for redirection after Login.

I hope it will solve your problem.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement