As I can't find a way to split a Drupal Commerce pane into several forms (so far it creates several field-sets) I had to create several submit buttons in the same form. But it's the same submit button that always gets triggered.
I have these 2 "forms":
- Field 1.1 - Field 1.2 -> Submit 1 - Field 2.1 ->Submit 2
I believe this would not be a problem if I would not use ajax to submit the forms, but I do by using
'event' => 'click' so that the form is submited when ENTER is pressed.
My problem is that if I press ENTER from the field 2.1 it's the Submit 1 that gets triggered.
Any idea on how to select the right submit button with the click event?