Results 1 to 5 of 5

Thread: Validator error Message

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    56
    Answers
    2
    Vote Rating
    1
      0  

    Default Answered: Validator error Message

    hi everybody,

    I have two problems which I would like to solve

    First When I check a text field with allowblank, I get a red border with a red wavy line appears in the text field .....
    as I get it back to the wavy line is not displayed?


    Second When I put on blankText "", the error message is empty, it is displayed but still a picture ....
    how can I change it? which I also do not see this picture.

    Many thanks in advance for your help

    AUTOMATIC TRANSLATOR


    Hallo an alle,

    ich habe zwei Probleme die ich gern lsen mchte.

    1. wenn ich ein textfeld mit allowblank prfe, bekomme ich einen roten Rahmen mit einer roten Wellenlinie im textfeld
    angezeigt..... wie bekomme ich es hin, das die Wellenlinie nicht angezeigt wird?

    2. wenn ich blanktext auf "" setze, ist die error Message leer es wird aber immer noch ein Picture angezeigt....
    was kann ich machen, das mir auch dieses Bild nicht angezeigt wird.

    vielen dank im voraus fr eure hilfe

  2. Oh, the wavy line is a background image. Set invalidCls on the field. Then you just need the border in your cls. It is color #CC3300.

    Also, according to the docs you should use msgTarget: 'none' in your situation, though I don't think it handles it any differently.

  3. #2
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    603
    Answers
    67
    Vote Rating
    284
      1  

    Default

    I understand your post to mean you don't want to show validation.
    http://docs.sencha.com/ext-js/4-1/#!...fg-preventMark

    Set preventMark to false.

    If you don't want to validate at all just remove allowBlank: false since it defaults to true

  4. #3
    Sencha User
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    56
    Answers
    2
    Vote Rating
    1
      0  

    Default

    Quote Originally Posted by Tim Toady View Post
    Set preventMark to false.
    Thanks for the quick reply, but it is not the solution to the problem. the red border will remain
    I would like to have only the wavy line out

    I have was found,
    the second question is done...
    the solution is msgTarget:''

  5. #4
    Sencha User Tim Toady's Avatar
    Join Date
    Feb 2010
    Location
    Pennsylvania
    Posts
    603
    Answers
    67
    Vote Rating
    284
      1  

    Default

    Oh, the wavy line is a background image. Set invalidCls on the field. Then you just need the border in your cls. It is color #CC3300.

    Also, according to the docs you should use msgTarget: 'none' in your situation, though I don't think it handles it any differently.

  6. #5
    Sencha User
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    56
    Answers
    2
    Vote Rating
    1
      0  

    Default

    big thanks....

    it works....

Posting Permissions

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