Results 1 to 3 of 3

Thread: Form submit on enter

  1. #1
    Sencha User
    Join Date
    Jul 2017
    Posts
    48
    Answers
    2

    Default Answered: Form submit on enter

    Because ExtReact uses FormPanel in place of <form> tags, I have attached a submit handler to the Button inside my FormPanel. However, I am trying to figure out how to submit my form on enter. There does not appear to be an onKeyUp event on the form panel to attach a submit event to pressing enter. What is the recommended way of doing this?

  2. See https://fiddle.sencha.com/?extreact#...or&fiddle/26gs

    FormPanel does create a form element in the DOM, so you can just set buttonType="submit" on the submit button and it's handler will be fired when pressing enter in any field in the form.

  3. #2
    Sencha User Mark.Brocato's Avatar
    Join Date
    Mar 2015
    Location
    Maryland
    Posts
    482
    Answers
    114

    Default

    See https://fiddle.sencha.com/?extreact#...or&fiddle/26gs

    FormPanel does create a form element in the DOM, so you can just set buttonType="submit" on the submit button and it's handler will be fired when pressing enter in any field in the form.

  4. #3
    Sencha Premium Member matei's Avatar
    Join Date
    Jun 2008
    Location
    Cluj-Napoca
    Posts
    82
    Answers
    1

    Default

    any props for Classic toolkit? for Form submit on enter?

Similar Threads

  1. Replies: 8
    Last Post: 26 Mar 2012, 12:56 PM
  2. Form submit on Enter
    By egorfine in forum Ext: Discussion
    Replies: 3
    Last Post: 13 Apr 2011, 11:02 AM
  3. Submit Form with Enter
    By drieraf in forum Ext 2.x: Help & Discussion
    Replies: 14
    Last Post: 28 Apr 2010, 4:19 AM
  4. Form without submit button, handling submit with shift+enter...
    By violinista in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 5 Jun 2007, 12:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •