Jump to content

Cascade dropdown or conditional list


alohatofu

Recommended Posts

I'm wondering if anyone can help me with this issue I'm having.

 

I would like to create a conditional cascade form.  based on the selection, it can display or not display an input form for the user to enter an string of text. then at the bottom of the page (or when a user submit) connect all the sections including the input field all together (it's like a story maker?)

 

Can someone please help me out by giving me an example so I can work towards my goal?

 

Thanks!!

Link to comment
https://forums.phpfreaks.com/topic/51547-cascade-dropdown-or-conditional-list/
Share on other sites

I'm not 100% clear on your request, but from the sounds of it you need a javascript solution. PHP cannot do what you are asking. You will want to have some type of control (for example a radio button group) and use an onclick event to trigger a function. That function will then use CSS to change the display property of other fields to be hidden or visible.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.