That's a HTML limitation, one form can only contain one default (the first if not otherwise specified) submit button.
But you can cheat with javascript :-)
The attached file contains a html file with 3 fieldsets (groups) with 1 textbox and 3 buttons (Buttons 1 - 3). If the first textbox has the focus and you press enter, button1 will be clicked, in the second button two and in the third button third.
This example handles the keydown inside the fieldset tag.
Code:
<fieldset id="Group<x>" onKeyDown="fnKeyDown(this)">
...
</fieldset>
Every time you press a key while a fieldset (or a child node of it) has the focus the javascript function "fnKeyDown" will be called.
Because the function is called on *every* click and we just want to handle "enter" we quit if your keyCode is not 13 (== linefeed).
Code:
if (event.keyCode != 13)
return;
Inside this function we check who clicked us and then call the button depending which group has the focus.
Code:
if (group.id == "Group1") {
document.getElementById("Group1Button1").click();
} else if (group.id == "Group2") {
document.getElementById("Group2Button2").click();
} else if (group.id == "Group3") {
document.getElementById("Group3Button3").click();
}
Hope this helps you...