Login Register

validation

How do you make dijit.Editor a required form field ?

Any way to make dijit.Editor form elements "required" ? Have it trigger an invalidMessage call if nothing is entered ?

i.e. like validationTextBox ?

required="true"
invalidMessage="Please enter a value."

I can write my own form validation script for just this one field, but since I am already using validationTextBox it would be nice to have all the validation messages on the form look the same.

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

DateTextBox Validation

Hi, I'm brand new to Dojo, and I'm attempting to use the DateTextBox widget to give users a localized calendar from which to select a date. The localization aspect is working well, so that part is great.

My problem is that I need to be able to send the localized displayed value to the server rather than the universal Dijit value. I've been able to accomplish that with a dynamic serialization formula. However, for complicated reasons, I also need to be able to validate the displayed value rather than the Dijit value using an existing script. How can I do that?

Simple, custom form validation - how? docs?

Hello.

Can someone point me at some examples or documentation for adding extra form validation? The ValidationTextBox etc are fine, but often I need to extend the logic for certain forms. This must be a common task.

For example, I have a form with date-of-birth: three FilteringSelect widgets for day, month, year.
Before allowing the form to submit, I need to check that the date is valid - eg 31 Feb is not allowed.

The only example I could find is a comment in the book and it's not working for me.

dojox.regexp.tld doesn't validate .cat Country Code

hi there,

i've recently found that .cat Country Code is not validated as ccRE nor genericRE, how should i validate it? or should dojo add it to the core /dojox/validate/regexp.js

thanks

Validation on Submit of Form

Hi Folks, I am new to DOJO but think it is a very good toolkit and will be using it extensively due to IBM championing it for Lotus Domino in the future.

My question is this, It is rather easy to make individual fields pop up with text etc when you exit them stating certain validation credentials which is nice, but, how do you go about doing validation on all fields when a form is being submitted, Is there a way to get hold of all elements and there valid state or something.

Any help or links as to what I should be looking/reading....

Regards

ValidationTextBox and regular expressions....Help!

Hi!

I'm having some trouble with the programmatic creation ov a dijit.form.ValidationTextBox:
I'm currently wondering why this doesn't work:

var validationBox = new dijit.form.ValidationTextBox({
        regExp: "[\w]+",
        required: true,
        invalidMessage: "regexp [\w]+ not fulfilled...."
},dojo.byId("tmpTagContainer"));

The problem seems to be the given Regular expression. The source file of the ValidationTextBox states, that the regular expression needs to be a string. The validation of the entered string always fails.

Syndicate content