For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Jonathan_Galent's avatar
Aug 11, 2015
Solved

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_856's avatar
    Fred_Slater_856
    Historic 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"
    }