Results 1 to 5 of 5

Thread: Problem with formpanel validation in modern toolkit

  1. #1
    Sencha User
    Join Date
    Apr 2015
    Location
    India
    Posts
    177
    Answers
    2

    Default Problem with formpanel validation in modern toolkit

    I am having problem in validating the form in modern toolkit.

    fiddle - https://fiddle.sencha.com/#fiddle/1ft1

    model.validate().isValid() is always returning true value. Am i doing something wrong here .?

    Thanks,
    Sahil

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    The validate() method has been deprecated:
    http://docs.sencha.com/extjs/6.0.2-m...ethod-validate

    You can use the getValidation() method.
    http://docs.sencha.com/extjs/6.0.2-m...-getValidation

  3. #3
    Sencha User
    Join Date
    Apr 2015
    Location
    India
    Posts
    177
    Answers
    2

    Default

    Quote Originally Posted by Gary Schlosberg View Post

    You can use the getValidation() method.
    http://docs.sencha.com/extjs/6.0.2-m...-getValidation
    Thank you Gary for the reply.
    I have used getValidation() but still it only return true. Please check the fiddle - https://fiddle.sencha.com/#fiddle/1ft1

    Regards,
    Sahil

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    65

    Default

    I have the same problem. Did you manage to get it to work, see there was no follow up from Sencha. No examples of Modern form validation on the website, I wonder if the have even tested it.

    Stepping through the code it does not recognise that the fields in the model when doing the validation , only seems to think there is an id field.

  5. #5
    Sencha Premium User
    Join Date
    Apr 2008
    Posts
    504

    Default

    Of note, the property validationMessage: "blah" doesn't do anything either.

Similar Threads

  1. Form validation using modern toolkit
    By tibor.mirnic in forum Ext JS 6.x Q&A
    Replies: 9
    Last Post: 18 Dec 2018, 7:37 AM
  2. Modern toolkit calendar
    By bogdica21 in forum Ext JS 6.x Q&A
    Replies: 6
    Last Post: 3 May 2016, 9:35 PM
  3. Modern toolkit
    By ErikJAX in forum Sencha Architect 3.x: Q&A
    Replies: 1
    Last Post: 3 May 2016, 1:44 PM
  4. Tree in Modern toolkit
    By wbabich in forum Ext JS 6.x Q&A
    Replies: 3
    Last Post: 13 Oct 2015, 6:35 AM
  5. Ext.Promise on modern toolkit only??
    By chanand in forum Ext JS 6.x Q&A
    Replies: 3
    Last Post: 17 Jun 2015, 8:48 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
  •