Hi,
I have a form which I want to have 2 submit buttons - 1 which submits data to a table and stays on the form and a second which closes the form and redirects to another page.
Is it possible to do this?
Thanks
Steve
Hi,
I have a form which I want to have 2 submit buttons - 1 which submits data to a table and stays on the form and a second which closes the form and redirects to another page.
Is it possible to do this?
Thanks
Steve
You could try having 2 buttons,
One will be a regular button, which will trigger any workflow you want and a second button that needs to be of type submit.
But why do you need it to be done in 2 steps?
You can do all of this in a single workflow more efficiently.
One use case is that, a submit button triggers the validation to make sure all required fields are filled ![]()
So for example, maybe you have a form with 5 parts. Each part has a save section button. And then you have an overall Submit button.
When saving, we also want to check that all fields in the section is filled.
so in other words, it would be great to have multiple submit buttons functionality which currently there isnt hahaha. ![]()
Hi,
If i unserstand correctly, I’m going to suggest you look at this problem from another angle.
A submit button does signal “I have completed the form”. So either
a) Submit the form to database or
b) complete this section of a “larger form” (ie multiple forms, which you save in variable, then submit later).
If you need to have all fields in the same form, then the “validation step” logic is not a submit, it’s simply a checker, which should not be treated as a submit.
Deciding which solution depends on how you want to work it, but its definitely possible!
Thanks for the responses.
Just to clarify, the first submit button is to save and stay on the form (Save and New) while the second will either be Save and Close or just Close.
In either case, they should be both Submit buttons. I was trying to see if I could read the text on the button that was pressed so that I could do a branch in the workflow but I don’t see how to do that.
Thanks
Ok, I think that I am making progress. I got the AI Agent to build out a form and it created the 2 buttons and on onclick will save the value of a variable to SaveNew or SaveClose. The variable value can then be checked to determine what action to take.
However, after setting the variable, the button workflow is set to Execute a Component Action which is to submit the form. This does not work though, and looking at the documentation I see that I have to enable the form submission action to “Allow execution from outside”, but I cannot find where I would set that.
Thanks
Steve