Login Register

Is there a way to handle multiple error messages in forms ?

I have a form with ValidationTextBox inputs like this one :

<input type="text" id="email"
    name="user.email" tabindex="4"
    dojotype="dijit.form.ValidationTextBox"
    required="true" trim="true"
    regexp="[a-zA-Z0-9_\x2D\x2E]+@[a-zA-Z0-9_\x2D\x2E]+\x2E[a-zA-Z]+"
    invalidmessage="Invalid email address." />

The message "Invalid email address." is shown whenever you are focused on the email input, while your email address is not valid. I'd like to handle multiple messages. For example, when the input is empty, it would be better if the message was "Required field." or "Type your email address." instead of "Invalid email address.".

Do you know if there is a way to handle differents messages? Maybe in a future release?

Thanks

Try this :

Try this :

Thanks! It works perfectly

Thanks! It works perfectly well !