Login Register

isvalid

Unable to validate a *TextBox

Hello ! :)

Do you know why I can't have a focus with the error message displayed on a *TextBox element (ValidationTextBox, CurrencyTextBox, etc) to validate it ?
when I try dijit.byId ('myElt').validate (true), or .isValid (true), .getErrorMessage (true), .getPromptMessage (true), nothing works !

The only thing that can be used is to set the focus to the specified element, and set the focus to another element, that will display the warning image, but without the prompt message.

It's tricky and not completly functionnal

Do you have a solution for me please ? :)

[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.

Syndicate content