PDA

View Full Version : Default qTip message on empty Field



h3ct0r
14 Oct 2011, 12:23 PM
Hi, I'm trying to change the default qTip message on a form which has several fields to allowBlank false.

If press save, an qTip appear to the right of the empty field with the text "This field is required". I need to change that to another language.

How can i achieve this?

I have read on the examples how to create a custom validator, but not how to overwrite the default qTip of empty errors, on a form.

Thanks!>:)

slemmon
14 Oct 2011, 6:37 PM
Check into the blankText config for textfields.
I think that's what you're looking for.

http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.Text-cfg-blankText

h3ct0r
15 Oct 2011, 3:50 AM
This was exactly what i was looking for!

Thank you, slemmon, question answered!