PDA

View Full Version : Validator error Message



DetBerlin
7 Nov 2012, 9:25 AM
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

Tim Toady
7 Nov 2012, 9:38 AM
I understand your post to mean you don't want to show validation.
http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.Labelable-cfg-preventMark

Set preventMark to false.

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

DetBerlin
7 Nov 2012, 11:07 AM
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:''

Tim Toady
7 Nov 2012, 11:22 AM
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.

DetBerlin
7 Nov 2012, 12:55 PM
big thanks....

it works....