3

Good day everyone,

I want to create a select in salesforce which look is similar to html tag optgroup. I want create an option within an option. Is it possible ? If yes, how will I do it ?

Thanks...

3
  • 2
    HTML tags are also supported in VF so you can try optgroup and then using Javascript remoting or action function you can pass the selected value in controller. Commented Aug 13, 2015 at 6:17
  • @TusharSharma This is a good suggestion but the problem is that this strategy doesn't fit my requirements. Do you have any idea how to make it in apex class ?
    – Hope
    Commented Aug 13, 2015 at 8:37
  • try map<string,List<string>> then in the key part put your label and in value put all your option. it will give you same layout. Commented Aug 13, 2015 at 9:04

0

You must log in to answer this question.

Browse other questions tagged .