Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-08-2009, 05:17 PM   PM User | #1
WindInFace
New Coder

 
Join Date: Nov 2009
Posts: 40
Thanks: 19
Thanked 0 Times in 0 Posts
WindInFace is an unknown quantity at this point
Dojo: Validate Group of Checkboxes

Hi,

I’ll try to explain my dilemma. I’m new to dojo so posting code may not be very helpful just yet.

1) I have a dijit.form.FilteringSelect (dropdown) with three values.

2) There are three columns of checkboxes beneath the dropdown.

3) The column checkboxes are enabled or disabled based on the value of the dropdown.

4) The enabled checkbox column must contain at least one checked box. If a certain checkbox on the third column is checked then that column requires an addition checked box.

I have all of the above working fine, except the validation.

I would like the validation to have the same “look and feel” of other fields on the browser, for example I have a validationTextBox that uses the promptMessage and invalidMessage attributes, and the validator function.

Checkboxes do not have invalidMessage, promptMessage, or a validator.

How can I get these messages on to the screen for a group of checkboxes? I’m thinking one possibility would be to group the checkboxes into the three groups somehow and then have the invalidMessage, promptMessage, and validator at each group level, maybe with a subclass?

Thank You in Advance for Your Help,

Lou
WindInFace is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:48 AM.


Advertisement
Log in to turn off these ads.