Forum Discussion
Group items in iApp multichoice selection field
I am creating an iApp template and would like to be able to group items in a multichoice select field so that there is a bold header entry that can't be selected for each group (you can see this behavior for example, when assigning iRules to a virtual server).
I can create the multichoice just fine by separating values by \n, I'm guessing there is some way to define an item as a group header? It looks like returning a tmsh::get_config object would do it for you, but I'm building this list myself.
The bold header in choice and multichoice fields was meant to categorize file names by folder, but not really meant as a user feature. Nevertheless, if you prefix each value in your list with the desired header text encased in slash characters, the result will be show the header in bold.
choice abc tcl { return "/header/item1\n/header/item2\n/header/item3" }
2 Replies
- Fred_Slater_856Historic F5 Account
The bold header in choice and multichoice fields was meant to categorize file names by folder, but not really meant as a user feature. Nevertheless, if you prefix each value in your list with the desired header text encased in slash characters, the result will be show the header in bold.
choice abc tcl { return "/header/item1\n/header/item2\n/header/item3" }- Terrific, thanks!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com