Skip Navigation

[Resolved] Adding a save button to my forms

This support ticket is created 3 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 2 replies, has 2 voices.

Last updated by katerinaH 3 years, 5 months ago.

Author
Posts
#2151395

Tell us what you are trying to do? I would like to add a save button to a form for users to be able to return to if they're unable to complete the full form when they start completing it.

Is there any documentation that you are following? https://toolset.com/forums/topic/i-need-a-save-and-save-and-continue-button-on-cred-form/. I'm using this and was able to add a save and continue button, however, it doesn't allow for saving when mandatory questions aren't answered, which I feel defeats the purpose of wanting to have a save button for individuals to return back to the form later if they need to.

Also, is it possible to set up a reminder to ask people to complete their profile if they save the form but don't submit it yet.

What is the link to your site? hidden link

#2151533

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Katerina

What you want isn't really possible.

Toolset Forms can either publish or edit posts.

If you want users who have half-completed a form to be able to save it and return to it later, then the only way that can work is to publish the post and then later use an edit form to edit that post and complete more fields.

So "saving" a form is actually submitting a post, and so validation will be applied. The only way to not have the validation (e.g. for a required field) occur is to not apply it in the first place, i.e. don't make your "required" fields required.

You could still apply custom server side validation via the cred_form_validate hook (https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate), though it starts to get a little complicated, because for the initial publish form you want to ignore the validation if they are saving the form but apply the validation if they are submitting the completed form (or if they are submitting the edit form to complete a saved form they have returned to).

That's really the only option, because there is no way to temporarily disable validation where you have set this up on the field settings themselves.

There isn't any way to send reminders to people with incomplete form submissions using Toolset. You would need to set up a custom cron job to run some custom code that checked for incomplete submissions and then sent mail to their authors. See the following for an article describing the kind of thing involved with setting up such a schedule: hidden link

#2156791

My issue is resolved now. Thank you!