Option selection element | HCL Digital Experience

An option selection element is used to present a list of predefined options that your content creators can select from when you create a content item or site area. An option selection element can be added to an authoring template only.

When you use an option selection element, you can either enter a custom set of options, or select a set of categories. Which option you use depends on how you want to use the option selection element.

Simplifying item profiling

If you select a set of categories in an option selection element, you can choose to have the categories that a user selects when you create an item added to the item's profile. You can use multiple option selection elements on an item form to simplify the process of profiling an item. For example, if you used separate taxonomies for "product type", "team" and "campaign", you might use three separate option selection elements in an authoring template. This strategy makes it easier for your content creators to select categories from each taxonomy on the content form.

Displaying different text on a rendered page

A simple use-case for using option selection elements is when you want to enable content creators to select from a short list of text options that are rendered on a page. For example, if you wanted to indicate different document types such as a "procedure", "policy" or "news" on the rendered page.

How to add custom code

Option selection elements can also be used to allow content creators to select different options that can then be used as parameters in some custom code such as a custom workflow or a JSP component.