ok.. i am trying to make a field required if a check box has been clicked.
i can seem to be able to do this like required="{(imp_O.selected ==
true)?false:true}"
i can only seem to be able to do it by using the disabled thingy...
but that leaves the * on the form even when the item is hidden!

<cfinput type="checkbox" name="imp_O" label="Others"  />
    <cfinput type="text" name="imp_Other"
    required="yes" disabled="{(imp_O.selected == true)?false:true}"
    visible="{imp_O.selected}"
    width="200"
    label="{(imp_O.selected == true)?'Please Specify':'
    '}"  />

If i do required like disabled then i get the error below.

Attribute validation error for the CFINPUT tag.
The value of the REQUIRED attribute is invalid. The value cannot be
converted to a boolean because it is not a simple value.Simple values
are booleans, numbers, strings, and date-time values.

thanks guys
-paul

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302856
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to