Results 1 to 5 of 5

Thread: [BUG][6.5.3.57 Modern] Form Field in Modern can be submitted also if it is not valide

    You found a bug! We've classified it as EXTJS-27078 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member dtex-lab's Avatar
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    411

    Default [BUG][6.5.3.57 Modern] Form Field in Modern can be submitted also if it is not valide

    Hi

    In Modern, if you have a Form containing Mandatory (Required) fields, client side validation is not implemented and use can submit the form


    see example in

    https://fiddle.sencha.com/#view/editor&fiddle/2g7l

    it should be not responsability of the developer invoking the "validate" and check the return value

    In classic submit of the form is automatically managing validation


    Regards
    we make IT work for you

  2. #2
    Sencha - Support Team
    Join Date
    Sep 2017
    Posts
    67

    Default

    Hi,

    We are currently looking into this. Will post an update shortly

    Regards,
    Joe

    Sencha Support

  3. #3
    Sencha - Support Team
    Join Date
    Sep 2017
    Posts
    67

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  4. #4
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,250

    Default

    In classic submit of the form is automatically managing validation
    This is incorrect. It's not automatically managed, you need to put formBind on the button which binds to the form validity state.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  5. #5
    Ext JS Premium Member dtex-lab's Avatar
    Join Date
    Sep 2009
    Location
    Italy
    Posts
    411

    Default

    Hi Evant
    Thanks for clarification but if you check on my fiddle (I changed a bit the original to be tested on both classic and modern).. in Classic also if no "formBind" set.. (maybe it is defaulted)... the form is not submtited
    we make IT work for you

Similar Threads

  1. Replies: 0
    Last Post: 28 Apr 2018, 11:15 PM
  2. Replies: 1
    Last Post: 10 Jan 2018, 11:04 AM
  3. Replies: 1
    Last Post: 8 Mar 2017, 6:01 PM
  4. [Modern] How to validate a form field
    By couru in forum Ext JS 6.x Q&A
    Replies: 1
    Last Post: 4 Aug 2016, 7:02 AM
  5. [FIXED] Ext.field.Field styles in modern/theme-base/sass/src/form/Panel.scss
    By themightychris in forum Ext JS 6.x Bugs
    Replies: 1
    Last Post: 19 Jul 2015, 8:47 PM

Posting Permissions

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