This topic is locked

hide/show a field based on the value of a drop down box

9/5/2009 1:44:40 PM
PHPRunner General questions
woodey2002 author

Hi guys,
Anyone know how to easy way on the add/edit page to hide/show a field based on the value of a drop down box.
E.g Have you booked the meeting?
If user selects yes then a field will appear underneath the answer to record the date they booked the meeting.
If they answer NO
Then now no box appears.
Many thanks.
James
PhpRunner's No1 Irish FAN

M
mmponline 9/7/2009

I need this as well, but with further function:

I have a field for number of players: (Dropdowns 1-8)

When 1 is selected, the next field: "Player one's name" must appear.

When 2 is selected field: "Player two's name" must appear. Etc.
Thanks for any help to guide me in the right direction.

woodey2002 author 9/7/2009

Hi,
Just a quick update, so far i managed disable not hide a control based on the value of a liost box here is the original post.
I think it's donoe with some javascript in the html version of your page.
check out this post.
If i find tyhe exact solution to hide the control i will let you know.
regards James
http://www.asprunner.com/forums/index.php?showtopic=6503
How to setup dependent dropdown boxes on Edit/Add pages

http://www.xlinesoft.com/tutorials/dependentdropdowns.htm
phpRunners number 1 irish fan