Enable / Disable form fields with a checkbox
Posted on 2004-11-29
Looking abit of advice on the best way to enable or disable form fields based on whether certain checkboxs have been ticked
For example if i have two checkboxes, I tick "check box one" which in turn enables a text box field and a textarea field. If I uncheck "check box one" the text box and text area are disabled again. The outcome I eventually want is to have 5 or 6 checkboxes enable and disabling a combination of form fields based on whether they are checked or not.
Any example CF code would be much appreciated or better ways of performing this task eg using a multiple select area instead of checkboxs ?