<standard:link>
AJAX
Data
Forms
Layout
Logic
Navigation
Personalisation
Standard
ATTRIBUTES
EXAMPLES
Templates
Regions
Third Party

<standard:link> </...>

Places a hyperlink that can execute a specific onclick function

Content

inline-elements
The text to turn into a link.

Attributes

confirmMessage
string
The message to be displayed for confirmation on click
href
string
Href

Allows the override of the url when clicked.
id
string
(Required) Give this control a unique id. Can be accessed in the client DOM (eg, document.getElementById('myid') or in the server DOM using [? $myid ?] or [? $('myid') ?]).
onSuccessRedirect
string
The URL to be redirected to upon the success of the actions of the link.
onSuccessToastMessage
string
The toast message to be displayed upon the success of the actions of the link.
openDialogId
string
When clicked, open a dialog box with this id. The dialog box must be defined on the same page as this link.
openDialogPage
string
When clicked, open a dialog box with this page in its contents.
openDialogPageWidth
string
The width of the dialogbox opened in pixels, when opendialogpage is set.
onClickServer
callable
Called when the button is clicked

Examples

ConfirmMessage Example

Shows a JS confirm dialog on click.

HTML:

<standard:link confirmmessage="Are you sure you want to delete this?">Delete</standard:link>

Run Example

OpenDialogPage Example

Opens a dialog box by including a page's contents.

HTML:

<standard:link opendialogpage="/legal/terms-of-use/">Terms & Conditions</standard:link>

Run Example

OpenDialogId Example

Opens a dialog box by its id.

HTML:

<forms:dialogbox id="mydialog"> <h1>Dialog Box</h1> </forms:dialogbox> <standard:link opendialogid="mydialog">Open Dialog</standard:link>

Run Example