---
category: [Administration & Integrations, Platform and Product Extensions, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, Presentation Components, widgets, tags, UI components]
nav: wcp_docs
parent_url: /wcp_docs/
title: facet
layout: subsection
wd_wcptag: facet
---

<a id="section_N10021_N1001E_N10001"></a>
Defines a facet group within a facet list. Each facet contains facet values that users can select to filter the search results. Example: A Locations facet group contains various cities.

Specify the `facet` tag in the `facetDefinition` attribute of [facetList](/wcp_docs/are1518472620612.html).

Use `facet` only with `facetedSearch` on view pages. See [facetedSearch](/wcp_docs/rpv1519338225087.html) for an example.

## <a id="section-mobile-support"></a>Mobile Support

Android, iOS

## <a id="section_qpw_1kc_ccb"></a>Attributes

-   <b>facetId</b>

    Data type: binding-String

    (Required) Unique identifier used to reference the facet group.

    <b>Note:</b> Don't use the `!` and `:` characters in `facetId`.

-   <b>facetValueDefinition</b>

    Data type: facetValue

    (Required) Defines each facet value within a facet group. See [facetValue](/wcp_docs/moi1519336254812.html).

-   <b>facetValues</b>

    Data type: binding-List

    (Required) List of all the facet definitions for the facet group.

-   <b>facetValueVariableName</b>

    Data type: string

    (Required) Name that displays for the facet within the facet values.

-   <b>id</b>

    Data type: binding-String

    Unique identifier used to reference this widget from other tags.

    Notes:

    -   The `id` must start with a letter.
    -   The `id` must be unique per page.
    -   To enable other widgets to reference this widget `id`, place this widget before the other widgets on the PMD. The PMD validation returns an "Undefined variable" error if it doesn't find a previously defined `id` in the PMD.
    -   Workday recommends that you include the `id` in your tag definitions for debugging purposes.

-   <b>label</b>

    Data type: dynamicBinding-String

    Text that displays beside or above most widgets. Often used in simple widgets that include inputs.

    The maximum number of characters is 255.

-   <b>render</b>

    Data type: binding-Boolean

    If true, this tag renders as a widget on the page. If false, the loaded page doesn't add this tag or its children. The default is true.

    Unlike the `visible` attribute, when `render` is false, other tags on the page can't reference this tag or widget on edit pages. On view pages, a tag can't reference other tags regardless of the `render` attribute value.

-   <b>sortOrder</b>

    Data type: binding-String

    When you set `sorted` to true on the `section` or `fieldSet` parent of this widget, the `sortOrder` attribute determines the order of this widget within its parent. The sort order is relative to the siblings of the widget.

    Typical values are "a", "b", "c", and so on. Example: The widget with `"sortOrder": "a"` displays before the widget with `"sortOrder": "b"`.

    <b>Note:</b> The `sortOrder` doesn't apply to sorting data on the widget. `sortOrder` only applies to the placement order of the widgets within the parent widget.



