1. #1
    Sencha User
    Join Date
    Nov 2012
    Location
    Germany
    Posts
    56
    Answers
    2
    Vote Rating
    1
    DetBerlin is on a distinguished road

      0  

    Default Answered: Validator error Message

    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 lösen möchte.

    1. wenn ich ein textfeld mit allowblank prüfe, 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 für 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
    544
    Answers
    61
    Vote Rating
    96
    Tim Toady is a glorious beacon of light Tim Toady is a glorious beacon of light Tim Toady is a glorious beacon of light Tim Toady is a glorious beacon of light Tim Toady is a glorious beacon of light

      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
    DetBerlin is on a distinguished road

      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
    544
    Answers
    61
    Vote Rating
    96
    Tim Toady is a glorious beacon of light Tim Toady is a glorious beacon of light Tim Toady is a glorious beacon of light Tim Toady is a glorious beacon of light Tim Toady is a glorious beacon of light

      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
    DetBerlin is on a distinguished road

      0  

    Default


    big thanks....

    it works....

Thread Participants: 1