Using Form API-----How to create a select list with other option enable
donkasok - August 26, 2009 - 10:31
Hi,
I am using Signup module.If i am not wrong signup module is using form API.I am trying to create a select list with other option.If user select other a text area will enable. How can i accomplish this.
For Eg:
I am having a drop down of Food
-----Italian
-----Western
-----Indian
-----Others
If user select Others a text field will enable for user to enter .
Please guide me to solve this issue.
with regards,
Don Asok

Dependent fields
See Dependent fields (http://drupal.org/project/dependent). With this module you can show/hide fields depending on the value selected in another field. Create one field to store the 'other' value, and if 'Others' is selected in the dropdown then show this other field.
Conditional Fields for Drupal 6.x
Dependent fields is for Drupal 5.x only. For 6.x see http://drupal.org/project/conditional_fields. But this module is still in beta version.
Thank you....
Thank you....
Don K Asok
http://drupalyogi.blogspot.com/