221 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
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
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 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…

221 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
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
  • Has referred 100+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+9 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.

501 posts
  • Has referred 1000+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+8 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

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by