setDefaultButton not working
Hi
Can anybody suggest me how to set default button in jspDyn page , so that on pressing enter button it should be submitted. I have used the below code but it is not responding to the Enter key.
<hbj:button
id="Search"
text="SearchOrder"
width="150px"
tooltip="Click here to search Orders"
onClick="SearchOrder"
disabled="false"
design="STANDARD">
<%
myFormId.setDefaultButton(Search);
%>
</hbj:button>
Regards,
Joseph
Kirupanand Venkatapathi replied
HI,
Try this
<hbj:button id="Send_Button"
text="Submit"
tooltip="Send feedback"
onClick="doProcess"
width="100"
design="EMPHASIZED">
<% myFormId.setFocusedControl(Send_Button); %>
</hbj:button>
If you use more then one "EMPHASIZED" button, the last button defined becomes "EMPHASIZED".