multichoice

Description

Similar to a basic choice element except that 0-N items may be selected from the available choices.

Syntax

multichoice <name> [default "Default value"] [display <display hint>] { <choices> }

Properties

  • choices - required the available items that can be selected. This can be a list of strings or a TCL expression.
  • default - a list of items that should be selected by default from the available items list. This can be a list of strings or a TCL expression.
  • display - gives a hint to the renderer about how this element should be displayed. This can be “small”, “medium”, “large”, “xlarge”, or “xxlarge”

Examples

section example5 {
  multichoice ports default {"80", "443"} {"22", "23", "80", "443"}
}
text {
  example5.ports "Please select the ports to listen on: "
}

Resulting UI presentation:

Codeshare Entries

The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor or control community code contributions. We make no guarantees or warranties regarding the available code, and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any code available in the BIG-IP API reference guides is solely at your own risk.