Page 1 of 1

how to enable/ disable controls on a form

Posted: Wed Oct 07, 2009 5:14 am
by firdous_kind86
Hi all,
i have a requirement that i have to enable/disable a specific textbox on a form based on the selected value from a combo box.

any help in this regard would be highly appreciated

Re: how to enable/ disable controls on a form

Posted: Wed Oct 07, 2009 5:41 am
by jackpf
You can use the "disabled" property of the textarea :) Just set it to true.

Re: how to enable/ disable controls on a form

Posted: Wed Oct 07, 2009 6:00 am
by firdous_kind86
yes but i have to do it on a selection value of a combo box, i mean it would require javascript function
that
if combobox.value =="??" then textarea.disabled = true (sumthing like this)

Re: how to enable/ disable controls on a form

Posted: Wed Oct 07, 2009 7:19 am
by jackpf
Yeah, pretty much.

And execute the function with the "onchange" event of the select box.