Sometimes you need to have several actions to be submitted on the same form. Usually you only have one button for this which points to the place you define on the FORM ACTION
block.
So, how can you detect which button was clicked in plain HTML?
You can use the value
variable on button, this way:
1 | <FORM METHOD="whatever" ACTION="/your/endPoint/"> |
And in your code just check the btnAction
parameter variable for accept
, dontAccept
or maybe
values. Easy!