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.
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 .
But that link redirects to the page shown in the below screens-shot
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 :
- Hide the form SUBMIT button.
- Then, SHOW “Save and Continue Later” link , for only LAST PAGE of your multi-step form.
- Add CSS “Save and Continue Later” link , same as SUBMIT button.
- On click of “Save and Continue Later” link , hide the content , that you have showed in the last screen-shot.
- Save that generated link in the COOKIE , and use that COOKIE for redirection after Login.
I hope it will solve your problem.