Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.