Hello everyone,
I cam across a confusing problem.
As I wanted to save a variable when the submit button on a form is pressed, I could not find a event type working.
I tried the button.onSubmit() and button.onClick() after using a JQuery selector to store the Element inside it.
Is there a way to get the triggerevent of a button in a form? I usually take the id of the element if possible:

