View Full Version : Apply Text to Vtype

6 Sep 2010, 3:42 AM

i can't apply the text to the VType :(

i have always this msg text : "This IS required field"

I do not want this message but my apply vtype

Ext.apply (Ext.form.VTypes, (
emailText: 'This field must contain an email address in the format "[email protected]"'
urlText: 'This field must contain a URL in the format "http:/' '/ www.domaine.com"'
alphaText: 'This field can only contain letters and characters Dr. stressed (_)',
alphanumText: 'This field can contain only alphanumeric chars America and the characters re emphasized (_)'
[/ CODE]

fieldLabel: 'Message'
, VType: 'alpha'
, AllowBlank: false
[/ CODE]

thank you for your help.


6 Sep 2010, 4:09 AM
Check your uppercase/lowercase. It's:

fieldLabel: 'Message',
vtype: 'alpha'
allowBlank: false

getErrors checks allowBlank before vtype, so you always get the 'This field is required' if you have not entered anything yet.

ps. You could specify a different blankText though.