215 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United Kingdom
NuclearThemes says

Does anyone know of a way to do the following? I have a dropdown menu which when someone selects something a new dropdown menu appears beneath. This needs to be a continuous process so the user can select as many items as required.

Everything needs to be put into an array so I can work with it in PHP .

Look forward to hearing everyone’s thoughts.

Thanks

3256 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Beta Tester
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+4 more
ParkerAndKent says

Hi,

if the items present in each select field are always the same why don’t you use a select MULTIPLE field that simply returns an array with all the selected elements? Otherwise you would need javascript to handle everything and that can be more complicated…

215 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 1 and 9 users
  • Sold between 100 and 1 000 dollars
  • United Kingdom
NuclearThemes says

Its a touch more complicated than how I originally explained it to be.

It’s sort of a quick order form so you have Type Dropdown, Quantity, and two other dropdowns on one line. Once filled out another line needs to appear.

It’s on the admin side so it doesn’t matter all that much if what’s there is very rough. It’s for my use only at the moment.

3256 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Exclusive Author
  • Interviewed on the Envato Notes blog
  • Beta Tester
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
+4 more
ParkerAndKent says

Hi,

I understand… well, it’s not something that can be explained easily… that would require a good amount of javascript to be handled.

You can try to hire someone on CodeCanyon, I don’t think you will find someone that can explain this without putting the hands on your specific project.

488 posts
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
  • Won a Competition
  • Referred between 1000 and 1999 users
  • Author had a Free File of the Month
  • Author had a File in an Envato Bundle
  • Bought between 10 and 49 items
+3 more
pixelentity says

Hey,

Maybe there is something in these that might help you, it sounds kinds similar. (snippet, explaination n demo via js fiddle)

Adding & Subtracting form fields dynamically with Jquery

http://pixelentity.com/freebies/form-jquery-clone-live/

Hiding form fields with CSS & jQuery

http://pixelentity.com/freebies/hide-form-fields-with-css-and-jquery/

Regards,

DOK

by
by
by
by
by
by