Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve forms user has 'saved' #32

Open
4g6x opened this issue Aug 10, 2020 · 2 comments
Open

Retrieve forms user has 'saved' #32

4g6x opened this issue Aug 10, 2020 · 2 comments

Comments

@4g6x
Copy link

4g6x commented Aug 10, 2020

Love this plugin, happy it still works in 2020! Nice job!

I am wondering if there is a fairly easy way to return on a protected page, the forms a user has 'saved' via this plugin?

I'd like for a logged in user to navigate to a section to be able to view all forms they have completed versus those that they have saved with a button to "continue" (simply taking them to the form)

@soulseekah
Copy link
Owner

Hey, happy to hear it still works. I was under the impression that it's no longer relevant as a plugin since "Save and Continue" functionality was introduced into core.

If a user is logged in, then the user_id will be saved along with the partial entry. You can probably output a list of all the entries for a logged in user by looking through them. I'm a bit rusty on how this plugin was written as I wrote it a long long time ago. But sounds like a plausible thing to do in about 5-10 lines of code for the simplest thing.

@4g6x
Copy link
Author

4g6x commented Aug 10, 2020

Save and Continue is actually a bit odd in core. It saves a unique URL that is emailed to the user, or they are expected to copy and save to their clipboard. It lasts for 30 days. The user has to visit this exact URL in order to retrieve and continue their submission.

Ya, I will see if I can write a custom query to retrieve data by user ID that are partial.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants