enabling and disabling fields...

akshal

New member
Local time
Tomorrow, 05:09
Joined
Nov 26, 2005
Messages
8
hi, there is this form i want to create which uses a drop down list.... i want to be able to auto enable and disable selective fields upon selecting one of the choices.

e.g. in a drop down list containing: choice 1, choice 2 and choice 3

and there are the fields field no. 1, field no. 2 and field no.3


If i select Choice 1 --> field no. 1 get enabled and the other 2 gets disable... so on and so forth....


How do i go about doing this?
 
In the after update trigger of the drop down list
if dropdownlist.value = "choice1" then
field1.enabled=true
field2.enabled=false
field3.enabled=false
elseif
dropdownlist.value = "choice2" then
field1.enabled=false
field2.enabled=true
field3.enabled=false
else
dropdownlist.value = "choice3" then
field1.enabled=false
field2.enabled=false
field3.enabled=true
end if
 

Users who are viewing this thread

Back
Top Bottom