Skip Navigation

[Resolved] Auto-submit?

This thread is resolved. Here is a description of the problem and solution.

Problem:

Is there a way for a form to submit automatically when the user leaves the page... instead of having to click a "Submit" button?

Solution:

There isn't such kind of feature within Toolset form plugin, it needs custom codes

Relevant Documentation:

This support ticket is created 6 years, 4 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by GamX 6 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1134023

Hi, is there a way for a form to submit automatically when the user leaves the page... instead of having to click a "Submit" button?

#1134070

Hi,

There isn't such kind of feature within Toolset form plugin, it needs custom codes, I searched it in google, found some related threads, for example:
hidden link
https://stackoverflow.com/questions/48845921/auto-submit-form-when-user-want-to-leave-close-refresh-the-page

And you can use JS codes to submit the form by clicking the submit button:

for your reference:

#1136238

Hi Luo, did you intend to include a couple more links? The only one that came through and works was the stackoverflow regarding auto submit. Thanks!

#1136528

Do you need more links?
You can search it in google, for example:
hidden link

To submit the form, please check this document:
hidden link

For your reference, you might check it with our Toolset Contractors:
https://toolset.com/contractors/

#1140717

My issue is resolved now. Thank you!