---
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: externalLink
layout: subsection
wd_wcptag: externalLink
---

<a id="section_N10021_N1001E_N10001"></a>
Displays a text link that navigates to a specified URL.

Use `externalLink` on view and edit pages.

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

This sample `externalLink` navigates to an external URL.

```
{
    "type": "externalLink",
    "label": "About Workday",
    "descriptor": "Go to the Workday web site",
    "url": "https://www.workday.com/"
}
```

This sample `externalLink` navigates to the Workday home page using a relative URL and the `tenant` predefined app variable.

```
{
    "type": "externalLink",
    "label": "Workday Home",
    "descriptor": "Go to your tenant's Workday home page",
    "url": "<% '/' + tenant + '/d/home.htmld' %>"
}
```

In this similar sample, you can use `externalLink` to display a Workday report. You can save the relative path of the custom report in an app variable, and reference it using `attrstore`.

```
{
    "type": "externalLink",
    "label": "Detailed Report",
    "descriptor": "Open the report and export to Excel",
    "url": "<% '/' + tenant + attrstore.customReportPath%>"
}
```

## <a id="section_lg4_v1g_khb"></a>Mobile Support

Android, iOS

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

-   <b>descriptor</b>

    Data type: binding-String

    The display text of an external link.

-   <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.

-   <b>url</b>

    Data type: dynamicBinding-String

    The destination URL for the external link.

-   <b>visible</b>

    Data type: booleanScript

    If true, the widget generated by this tag is visible. If false, this tag and its children tags aren't visible. This tag provides the ability to display or hide the widget dynamically based on user interactions on the page. The default is true. Unlike the `render` attribute, the generated widget persists on the page even when `visible` is false.

    <b>Notes:</b>

    -   When the widget or field you’re hiding changes on the page, you must include it inside a `fieldSet`.
    -   When the `visible` attribute is false for this widget on an edit page, the outbound endpoint doesn't include the `valueOutBinding` data of the widget in the outbound payload. To include the `valueOutBinding` data in the payload, use the `onSend` event handler.



## <a id="section_brr_rrl_nrb"></a>PMD Scripting Methods

-   <b>getDescriptor()</b>

    Return type: `string`

    Description: Returns the text of the `externalLink`.

-   <b>getLabel()</b>

    Return type: `string`

    Description: Returns the widget label.

-   <b>getUrl()</b>

    Return type: `string`

    Description: Returns the url of the `externalLink`.

-   <b>isVisible()</b>

    Return type: `boolean`

    Description: Returns true if this widget is visible.

-   <b>setDescriptor(String descriptor)</b>

    Return type: `void`

    Description: Sets the text of the `externalLink`.

-   <b>setLabel(String label)</b>

    Return type: `void`

    Description: Sets the widget label.

-   <b>setUrl(String label)</b>

    Return type: `void`

    Description: Sets the url of the `externalLink`.

-   <b>setVisible(boolean visible)</b>

    Return type: `void`

    Description: Displays or hides this widget..

    If you need to change the visibility of an `externalLink`, ensure that it's inside a `fieldSet`.



