-1
I have an extensive form with some tabs and in each tab there is a form with "post" method. I would like to create a "finish" BUTTON in the last tab that saved all the data entered in all form form, as I do?
Note: Due to the form be mt great, there is no way to put here tds the codes so I will summarize and if you need some code I add in the question.
The shape of the tabs is like this:
<form action="/Pasta/SalvarInquerito" method="post" id="FormInquerito"></form>
<form action="/Autor/Salvar" id="formAutor" method="post"></form>
<form action="/Pasta/SalvarCrime" method="post" id="FormCrime"></form>
<form action="/Filhos/Salvar" id="formFilho" method="post"></form>
<form method="post" id="PericiaForm" action="/Pasta/SalvarPericia"></form>
<form action="/Pasta/SalvarVitima" method="post" id="FormVitima"></form>
The button I use in each tab to save the data entered in the tab:
<button type="submit"
id="btnSalvar"
form="FormVitima"
class="btnSalvarGreen">
SALVAR
</button>
Do you really need to have multiple presses? Regardless of how many sessions you can leave all in one form since you want to save all at once and not one at a time.
– Laércio Lopes
I think you’re looking for that method Htmlformelement.Ubmit(). In case it would be an external button to the forms that would call this method for each of the Forms? Confirm so that you can submit an answer to me has become a little vague.
– Augusto Vasques
@Augustovasques Yes exactly that!
– user198468
@Mizrainphelipesá, already answered and the answer seems appropriate.
– Augusto Vasques