Forums

how to check if form submit button is clicked?

saveg 10 Dec, 2019
I need to have a simple and effective way to check if submit is clicked or not.
I have a multipage form and on page2 I have actions:
upload and rename file
then display page1 form data
then if user presses submit (conditional)
I will do db save and send email.
if no submit is pressed then I dont do save and email.
healyhatman 11 Dec, 2019
So you want to make it so they can't submit the form any way other than clicking on the submit button? That's not the normal form behaviour. You could though give both submit buttons the same NAME, but a different VALUE and then in your submit event check which value was submitted.
saveg 11 Dec, 2019
Can you pls explain more in details about how to do this:
the same NAME, but a different VALUE and then in your submit event check which value was submitted.

do you mean I create action based on the value, on on the view side I just add event??
This topic is locked and no more replies can be posted.