I'm no JavaScript expert, so someone please correct me if I'm wrong.
I believe this can be handled by writing a JS function that will set the
"disabled" setting on the checkboxes based on the status of the boxes.
This is generi-code, so don't try to run it...
function doBoxes() {
if MustChangePassword.checked == true {
CannotChangePassword.disabled = true;
PasswordNeverExpires.disabled = true;
} else {
CannotChangePassword.disabled = false;
PasswordNeverExpires.disabled = false;
if PasswordNeverExpires.checked == true {
CannotChangePassword.disabled = true;
}
}
}
And then on the INPUT tags for the checkboxes, add an onClick="doBoxes()"
attribute. Of course you should not rely on client-side stuff like this and
perform proper error checking in your CF app, but it's a start anyway.
-Justin Scott, Lead Developer
Sceiron Internet Services, Inc.
http://www.sceiron.com
----- Original Message -----
From: "phumes1" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 3:02 PM
Subject: Re: <INPUT / check boxes
> Hi,
>
> Below I have the following checkboxes. What I would like to do is if a
user
> checks the first box (User must change password at next login) then the
> next two (User cannot change password & Password never expires) become
> uncheckable or greyed out.
>
>
> If the (Password never expires) is checked then the "User must change
> password at next login" gets greyed out or uncheckable.
>
> Similar to adding a user in NT.
>
> How can I do this?
>
>
> <input class="formbuttons" type="checkbox" name="select"
> value="MustChangePassword">User must change password at next login<br>
>
> <input class="formbuttons" type="checkbox" name="select"
> value="CannotChangePassword">User cannot change password<br>
>
> <input class="formbuttons" type="checkbox" name="select"
> value="PasswordNeverExpires">Password never expires<br>
> <input class="formbuttons" type="checkbox" name="select"
> value="AccountDisabled">Account is disabled
>
>
>
>
>
+---------------------------------------------------------------------------
--------+
>
> Philip Humeniuk
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
+---------------------------------------------------------------------------
---------+
>
>
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists