---
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, tags, UI components]
nav: wcp_docs
parent_url: /wcp_docs/
title: pillCard
layout: subsection
wd_wcptag: pillCard
---

<a id="section_N10021_N1001E_N10001"></a>
Displays a group of buttons on a card.

Define the card in a Page Configuration Card. See [Add Page Configuration Cards](/wcp_docs/GUID-77bab23d-5938-4ffe-92e2-2dd96a72444a-enHYPHENus.html).

In the Page Configuration Card, specify `pillCard` as the `body` type.

## <a id="section_v32_wym_stb"></a>Example

This sample `.card` file contains a pill card definition:

In this sample <i>pillCardExample</i> Page Configuration Card, the `body` type is `pillCard`.

```
{
  "id": "pillCardExample",
  "header": {
   "title": "Suggested Tasks"
  },
  "body": {
    "type": "pillCard",
    "pills": [
      {
        "label": "Create charity",
        "taskReference": {
          "taskId": "createCharity"
        }
      },
      {
        "label": "Donate",
        "taskReference": {
          "taskId": "donate"
        }
      },
      {
       "label": "View donations",
       "taskReference": {
         "taskId": "donations"
       }
     }
   ]
  }
}
```

This sample `card` tag references the `.card` definition in a PMD:

```
{
"type": "card",
"cardId": "pill"
}
```

This sample `cardContainer` references the <i>pillCardExample</i> Page Configuration Card.

```
{
  "type": "cardContainer",
  "layout": "grid",
  "cards": [            
    {
      "type": "card",
      "cardId": "pill"
    }
  ]
}
```

The sample `tasks` array in the AMD:

```
{
  "tasks" : [
   {
     "id" : "createCharity",
     "routingPattern" : "/charities/create",
     "page" : {
       "id" : "createCharity"
     }
   },
   {
     "id" : "donate",
     "routingPattern" : "/donate/{charityId}",
     "page" : {
       "id" : "donate"
     }
   },
   {
     "id" : "donations",
     "routingPattern" : "/donations/{workerId}",
     "page" : {
       "id" : "donations"
     }
   }
  ]
}
```

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

Android, iOS

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

-   <b>id</b>

    Data type: string

    (Required) Unique identifier used to reference the card in PMDs. The `id` must match the card file name.

-   <b>parameters</b>

    Data type: string array

    Contains parameter names used for passing variable data to the card. Because different PMDs can call the same card in various contexts, use `parameters` to pass dynamic values to the card.

-   <b>header</b>

    Data type: object

    Contains these attributes:

    -   <b>title</b>

        Data type: stringScript

        Bold text that displays at the top of the card.

    -   <b>subtitle</b>

        Data type: stringScript

        Additional text that displays below the `title`.

    -   <a id="d25e411"></a><b>icon</b>

        Data type: string

        The name of the icon that displays on the left of the `title` and `subtitle`. For valid values, see the icons prefixed with `wd-accent` in [Reference: Icons](/wcp_docs/pyw1636491346913.html).

    -   <a id="d25e435"></a><b>indicator</b>

        Data type: object

        A small text element that you can use to convey the status of a card.

        Contains these attributes:

        -   <b>label</b>

            Data type: stringScript

            The text of the indicator.

        -   <b>color</b>

            Data type: stringScript

            The color of the indicator. Valid values:

            -   `blue`
            -   `gray`
            -   `green`
            -   `orange`
            -   `red`
            -   `transparent`



-   <b>body</b>

    Data type: object

    (Required) The body of the card.

    Contains these attributes:

    -   <b>type</b>

        Data type: string

        (Required) The card type. For pill cards, set `type` as "pillCard".

    -   <b>pills</b>

        Data type: TaskButton array

        (Required) The list of buttons to display on the card. You can specify up to 10 pills on a card. Each `pill` contains these attributes:

        -   <b>label</b>

            Data type: stringScript

            (Required) The text of the `pill`.

        -   <a id="dlentry_taskReference_mlt"></a><b>taskReference</b>

            Data type: `taskReference`

            (Required) The page to navigate to when a user clicks the `pill`. Specify the [taskReference](/wcp_docs/cgt1531499518059.html#) tag.



-   <b>footer</b>

    Data type: TaskButton array

    A list of links at the bottom of each card. You can include up to 5 links in the footer.

    Each link object contains these attributes:

    -   <b>label</b>

        Data type: stringScript

        (Required) The text of the link.

    -   <a id="d25e1288"></a><b>taskReference</b>

        Data type: `taskReference`

        The page to navigate to when a user clicks the link. Specify the [taskReference](/wcp_docs/cgt1531499518059.html#) tag.

        You must specify either `taskReference`, `url`, or `workdayTaskReference`. `taskReference`, `url` and `workdayTaskReference` are mutually exclusive.

        Example:

        ```
        "footer": [
          {
            "label": "Home",
            "taskReference": {
            "taskId": "home"
            }
          }
        ```

        ]

    -   <a id="d25e1334"></a><b>workdayTaskReference</b>

        Data type: workdayTaskReference object

        Contains the `wid` of a Workday-delivered task or report to navigate to.

        To determine the `wid` value, get the Integration ID of the Workday-delivered task or report. For details, see [Navigate to Workday Tasks and Reports](/wcp_docs/GUID-65dc8eb6-a52b-4bf5-b05a-32160abb1f08-enHYPHENus.html)

        You must specify either `taskReference`, `url`, or `workdayTaskReference`. `taskReference`, `url` and `workdayTaskReference` are mutually exclusive.

        This sample `footer` navigates to the <b>My Timesheets</b> report in Workday:

        ```
        "footer": [
          {
            "label": "My Timesheets",
            "workdayTaskReference": {
              "wid": "c4936fdad7d110001d9c005c57510000"
            }
          }
        ]
        ```

    -   <b>url</b>

        Data type: dynamicBinding-String

        The destination URL for an external link.

        You must specify either `taskReference`, `url`, or `workdayTaskReference`. `taskReference`, `url` and `workdayTaskReference` are mutually exclusive.

        Example:

        ```
        "footer": [
          {
            "label": "External Link",
            "url": "https://www.example.com"
          }
        ]
        ```




### Related Information

[cardContainer](/wcp_docs/iyt1652393015539.html)

[App Catalog: Charitable Donations](/app-catalog/charitableDonations)

