- Notifications
You must be signed in to change notification settings - Fork254
Submitting multiple forms at once#1398
-
I have a tab container with multiple tabs, each tab has a form in it. I want to submit all of the forms filled from the last tab using its submit button, how can I do that? Thank you. |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 2 comments
-
There's a few ways, but on the last tab you could set the action of the submit button, to trigger a JavaScript query object containing code to pull the values from each of the form controls and then run the appropriate data query you want to run with the results. In your data query you would set a placeholder object to use as a parameter as described here: Your query could look something along the lines of:
|
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Yes, that it pretty much it. You would need to collect all the form data, which is accessible via JavaScript. Then you can merge it into the format your backend need - and then send it. |
BetaWas this translation helpful?Give feedback.