[CLOSED] MVC - FormPanel - Prevent submit when pressing ENTER

  1. #1

    [CLOSED] MVC - FormPanel - Prevent submit when pressing ENTER


    I press ENTER in one of fields of formpanel then it redirects to home page. Could you tell me how to prevent that?

    Thanks in advance.
    Last edited by Daniil; Sep 26, 2014 at 12:16 PM. Reason: [CLOSED]
  2. #2
    You can override default key bindings with the ext:KeyMap. Probably the key with Code="ENTER" is bound to trigger the form submit action by default.

    I think you can get the figure of how to handle this with the following example:

    I hope this helps.
  3. #3
    Hi @thchuong,

    Is there not the only submittable field on the page? Just it looks that you are facing this:

Similar Threads

  1. Pressing enter in a textarea submits the form
    By mj.daly in forum 2.x Help
    Replies: 3
    Last Post: Feb 07, 2014, 4:12 AM
  2. Replies: 1
    Last Post: May 13, 2013, 2:40 PM
  3. Replies: 0
    Last Post: Aug 10, 2012, 7:31 AM
  4. Replies: 4
    Last Post: Oct 10, 2011, 4:28 PM
  5. [CLOSED] Htmleditor problem on Pressing Enter key
    By speedstepmem2 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 15, 2009, 12:25 PM

Posting Permissions