This topic is locked

Disable/Enable Controls on Edit/Add pages

7/23/2009 10:33:13 PM
ASPRunnerPro General questions
jtksmith author

I would like to disable and enable text boxes and date boxes based on the value or state of checkboxes and/or radio buttons.
I have been trying to figure out how to do this using the related example from Tips & Tricks How to disable/enable controls on Edit/Add pages, based on another control value but I can't get it to work. I found some other topics for checkboxes but I'd prefer using radio buttons if its an option.
I'd prefer even more to hide the disabled text boxes all together rather than simply locking them but I can't seem to figure that out either.
Thank you.

J
Jane 7/24/2009

Jeremy,
unfortunately this code won't work for radiobuttons.

Use can use checkboxes only for this purpose.

jtksmith author 7/24/2009

Jane,
Ok, thank you for confirming this. Is there a way to make checkboxes work like radio buttons within ASPRunner?