Skip to main content

Links

The Tape calculation field supports link output. A Link field in your app can contain multiple links. Use the index to access individual URLs.

Classic editor:

// Reference the "Link" field of your app, which can contain multiple links
const links = @Link;

// Get the first link
const firstLinkUrl = links[0];

// Result is the URL of the first link
firstLinkUrl

New editor:

// Reference the "Link" field of your app, which can contain multiple links
const links = Link;

// Get the first link
const firstLinkUrl = links[0];

// Result is the URL of the first link
firstLinkUrl

Markdown will automatically make a link clickable if it has the correct URL format.

A markdown link does not have the option to open the link in a new tab. We can use HTML for this:

Classic editor:

// Reference the "Link" field of your app, which can contain multiple links
const links = @Link;

// Get the first link
const firstLinkUrl = links[0];

// Result is the URL of the first link, opens in new tab
`<a href="${firstLinkUrl}" target="_blank">Click!</a>`

New editor:

// Reference the "Link" field of your app, which can contain multiple links
const links = Link;

// Get the first link
const firstLinkUrl = links[0];

// Result is the URL of the first link, opens in new tab
`<a href="${firstLinkUrl}" target="_blank">Click!</a>`