Kristoff1875 Posted June 12, 2012 Share Posted June 12, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/ Share on other sites More sharing options...
goodacre.liam Posted June 12, 2012 Share Posted June 12, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/#findComment-1353308 Share on other sites More sharing options...
Kristoff1875 Posted June 12, 2012 Author Share Posted June 12, 2012 That bottom example looks really really neat, neater than I actually imagined!! Will give it a go now, thanks Liam! Quote Link to comment https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/#findComment-1353323 Share on other sites More sharing options...
Kristoff1875 Posted June 13, 2012 Author Share Posted June 13, 2012 Liam, it is perfect for what I need, thanks! Quote Link to comment https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/#findComment-1353350 Share on other sites More sharing options...
goodacre.liam Posted June 13, 2012 Share Posted June 13, 2012 Awesome! I'm glad to have helped. Quote Link to comment https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/#findComment-1353352 Share on other sites More sharing options...
Kristoff1875 Posted June 13, 2012 Author Share Posted June 13, 2012 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 Quote Link to comment https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/#findComment-1353459 Share on other sites More sharing options...
goodacre.liam Posted June 13, 2012 Share Posted June 13, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/#findComment-1353570 Share on other sites More sharing options...
Kristoff1875 Posted June 13, 2012 Author Share Posted June 13, 2012 Ah ok, thought you'd used it before!! Thanks anyway! Quote Link to comment https://forums.phpfreaks.com/topic/264044-cloning-a-choice-on-a-form/#findComment-1353604 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.