Jump to content

Recommended Posts

Hi guys,

 

Basically what I am doing at the moment is having users select what part of their car is damaged and then selecting how bad the damage is. I've been trying a few different ways and so far nothing is working quite like I need. However, i've just found, ASM Select, and I really like the way it works, thinking that a list of the damage would be ideal....

 

Now what I am wondering, if I use this script, would I be able to use it over 2 dropdown selection boxes and display both answers? For example when the users chooses "Front Bumper" in the first dropdown, and then "Dent (Large)" in the second, can I make it display the result in the box as "Front Bumper > Dent (Large)"?

 

Just looking for a bit of advice before I attempt it!

 

Cheers in advanced guys.

Link to comment
https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/
Share on other sites

It is definitely possible:

There is a fork of asmSelect called bsmSelect https://github.com/vicb/bsmSelect

Check out the bottom example on this page: http://www.suumit.com/projects/bsmSelect/examples/index.html

Is this similar to what you wanted?

 

As bsmSelect also allows plugins: so you should be able to add in functionality that allows two drop-down selection boxes with a parent-child relationship.

 

Hope this helps.

Liam, quick question you may be able to help me out with if you're experienced with bsmselect...

 

I understand that when you select the option, and it goes below, it's greyed out on the menu because it then becomes a selected item on the dropdown. Is there any way of having the same selected item added to the list again? Or even adding a new option to the list cloning the selected item when it is chosen? Hope this makes sense.

 

Cheers

 

Chris

I'm not experienced with it (in fact I had never heard of either of the two).

 

You'll either have to write a plugin for it (if that functionality can be added by plugin), or modify the bsmSelect source for your needs.

Might be worth a Google for plugins that other people have written for it, to get a picture of what can be accomplished.

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.