Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    required field message

    Hey!

    How can I change the error message when using 'setRequired' in a FormItem?
    Default message is 'Field is required', but I couldn't find anything to change it...

    Code:
            TextItem email = new TextItem();
            email.setTitle("E-mail");
            email.setName("deEmail");
            email.setWidth("*");
            email.setRequired(true); // TODO Error message
    Thank you!

    #2
    You can change this via SmartClient's skinning facilities (if you want it changed system-wide). It's Validator.requiredField, so:

    Code:
    isc.Validator.addClassProperties({requiredField:"New error message"});

    Comment

    Working...
    X