orbital 15 Posted August 31, 2012 Report Share Posted August 31, 2012 I want to display a list of categories a user can choose like: appliancesall categoriesmobile phonesclothingetc... but the values i need assigned to the variable are different than the what I want displayed in the ui dropdown so the values would be appliancesapsmobile-phonesclothes how do i display the full category name to the user and still assign the correct value to the variable name to be used later? Quote Link to post Share on other sites
k1lv9h 76 Posted August 31, 2012 Report Share Posted August 31, 2012 Hi, Sample code:if($comparison(#uivalue, "=", "appliances")) { then { set(#runcategory, "appliances", "Global") } else if($comparison(#uivalue, "=", "all categories")) { then { set(#runcategory, "aps", "Global") } } else if($comparison(#uivalue, "=", "mobile phones")) { then { set(#runcategory, "mobile-phones", "Global") } } else { } } Kevin Quote Link to post Share on other sites
TheMentalist 4 Posted August 31, 2012 Report Share Posted August 31, 2012 When you created your drop down... wouldn't you just do.... <select name="#uichoice" fillwith="value"> <option value="appliances">appliances</option> <option value="aps">all categories</option> <option value="mobile-phones">mobile phones</option> </select> 1 Quote Link to post Share on other sites
wiremarket 1 Posted April 12, 2013 Report Share Posted April 12, 2013 When you created your drop down... wouldn't you just do.... <select name="#uichoice" fillwith="value"> <option value="appliances">appliances</option> <option value="aps">all categories</option> <option value="mobile-phones">mobile phones</option> </select> That certainly seems to make a lot more sense. Is the Dev license required in order to do that? Quote Link to post Share on other sites
J Bot 5 Posted April 20, 2013 Report Share Posted April 20, 2013 yes, what he wrote would need to be used in a ui html panel. Quote Link to post Share on other sites
steelersfan 38 Posted May 27, 2017 Report Share Posted May 27, 2017 Posting to bookmark this, the solution is quite helpful to me! I have been wondering how to achieve this for a long time now! Quote Link to post Share on other sites
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.