I have two submit buttons in two field . My problem is that if I press ENTER from the field 2 of textfield , Submit 1 gets triggered instead of trigger submit 2. but submit handler works perfectly for both submit button when it is clicked.


This is native browser functionality, you are going to need to use JavaScript to circumvent and add your own behavior

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.