Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Drop down value selection
padmapriya
Hi ,
There is a drop down in my DCT which is getting populated through a ipl file through inline command. The drop down values are read from xml file. Is there a way where in i can display the dropdown by category. Meaning the drop down will have 20 values and 10 values will belong to each category, The category names must not be selectable only their values should be selectable.
EX: Dropdown: Category1
Item1
Item2....
Item10
Category2
Item1
Item2....
Item10
here only item1,2... must be selectable and Category name must not be selectable.
Could any one suggest a solution for this.
Thanks and regards
Priya.
Find more posts tagged with
Comments
Frederik
you could give all the categories a specific value (e.g. "0"), and add a FormAPI onChange handler that will check the new selected value. If value=0, you revert the change (and maybe alert("you can't select a category") to explain the problem to the user)