2 Replies Latest reply: Jun 5, 2012 2:00 PM by Dan Bracuk RSS

    Default button in form

    Phinehas1234 Community Member

      Hi,

       

      I have three buttons and their type also are button. Let's say "Cancel", "Send", "Search". I want to set the default button when user presses "enter".

       

      For example, when user inputs some data in a textbox and press "enter", the form will perform the action of "Send". However, I only want the form to perform "Search" when user presses "enter".

       

      Since "Send" action will submit the form and "Search" action will not submit the form, I set none of them is submit type.

       

      Is it possible to set the default button to "Search".