Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Submitting multiple forms at once#1398

umutyorulmaz started this conversation inGeneral
Discussion options

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.

You must be logged in to vote

Replies: 2 comments

Comment options

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:

https://docs.lowcoder.cloud/lowcoder-documentation/business-logic-in-apps/write-javascript/javascript-query

Your query could look something along the lines of:

let payload = {name: form1.value.name,email: form2.value.email}targetQuery.run({payload: payload});
You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
3 participants
@umutyorulmaz@placidic@FalkWolsky

[8]ページ先頭

©2009-2025 Movatter.jp