Login Register

[ValidationTextBox] - How to Show the Prompt Error Message ?

Hi !
I have a understandable problem on dojo and I believe you can help me.

I use a ValidationTextBox, and when the user click on the submit button, I check all the elements into a function.

In this function I do dijit.byId('myElt').isValid (true) and if it's not valid, I would like to display the prompt message.

To do this, I tried getErrorMessage (true), getPrompMessage (true), isValid (true/false) (with true and after with false), validate (true/false), dijit.byId('myElt').focus (); and just after dijit.byId('anotherElt').focus ();, dijit.byId('myElt').validate, but NOTHING work. Why ? How I Can do this ?

Thanks for your help :)