1 Reply Latest reply: Nov 20, 2003 5:13 PM by 55663 RSS

    Any possibility  to use RETURN key on keyboard to submit a request?

    391583

      Its clear that by clicking on a submit button a event can be submitted,such as a standart SEARCH event.
      But is there any way to submit this event by using RETURN key?

      for exsample:
       <form name="search" method="POST">
                                <contents>
                                  <inlineMessage data:prompt="InlineMsg_TOOLTIP@nls"
                                                 vAlign="middle">
                                    <contents>
                                      <flowLayout>
                                        <contents>
                                          <choice name="attrName"
                                                  data:selectedValue="attrName@ctrl:page"
                                                  data:shortDesc="Choice_Short_TOOLTIP">
                                            <contents>
                                              <!-- @todo get the label from the attribute def control hint or use custom property IS_SEARCH_ALLOWED_BLN! -->
                                              <option data:text="Option_ID_LABEL@nls"
                                                      value="PatientDataId"/>
                                              <option data:text="Option_Name_LABEL@nls"
                                                      value="PdName"/>
                                              <option data:text="Option_FirstName_LABEL@nls"
                                                      value="PdFirstName"/>
                                              <option data:text="Option_Birthday_LABEL@nls"
                                                      value="PdBirthday"/>
                                              <option data:text="Option_SocialNr_LABEL@nls"
                                                      value="PdSocialSecurityNo"/>
                                              <option data:text="Option_BPhone_LABEL@nls"
                                                      value="AdBusinessPhone"/>
                                              <option data:text="Option_PPhone_LABEL@nls"
                                                      value="AdPhone"/>
                                              <option data:text="Option_EMail_LABEL@nls"
                                                      value="AdEMail"/>
                                              <option data:text="Option_ZipCode_LABEL@nls"
                                                      value="AdZipCode"/>
                                              <option data:text="Option_City_LABEL@nls"
                                                      value="AdCity"/>
                                            </contents>
                                          </choice>
                                          <textInput name="attrValue" columns="20"
                                                     data:text="attrValue@ctrl:page"
                                                     data:shortDesc="TxtInput_Short_TOOLTIP@nls"/>
                                        </contents>
                                      </flowLayout>
                                    </contents>
                                    <end>
                                      <submitButton data:textAndAccessKey="SubmitBtn_Short_TOOLTIP@nls"
                                                    ctrl:event="search"
                                                    selected="true" formName="search"/>
                                    </end>
                                  </inlineMessage>
                                </contents>
                              </form>
      For example here I want to let the submitbutton here to be the default submit button. how can it be done ?

      And If there are more than two buttons here. How can I select one button as the default one?

      thanks

      yong