Problem:
How to submit multiple forms on the same page with a single click?
Solution:
This is only possible when the forms are set to update via ajax and upon submission they keep displaying the form (rather than redirect to another page or display a message).
You would need to use JavaScript such as the following, which you would add to one of the forms, and which assumes that the submit buttons in each form have a .btn-submit class added:
( function( $ ) { $( document ).ready( function(){ $('.btn-submit').on( "click.tssupp", function(e){ var others = $('.btn-submit').not(this); $('.btn-submit').off( "click.tssupp"); others.click(); }); }); })( jQuery );
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 |
---|---|---|---|---|---|---|
- | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | 7:00 – 14:00 | - |
- | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | 15:00 – 16:00 | - |
Supporter timezone: Europe/London (GMT+00:00)
This topic contains 4 replies, has 2 voices.
Last updated by 6 years, 2 months ago.
Assisted by: Nigel.