New in Formulas 2.0
The link()
function allows for a string to have a link assigned to it.
link(string, urlString)
string.link(urlString)
Code language: JavaScript (javascript)
Note that the URL string is not validated, so an invalid URL can be entered. The string will still be displayed as a link, it will simply not work when clicked on.
Link prefixes for email addresses (mailto:
) and telephone numbers (tel:
) are also supported.
Example Formulas
link("Thomas Frank", "https://thomasjfrank.com")
"College Info Geek".link("https://collegeinfogeek.com")
link("Email Me", "mailto:[email protected]")
"Call Me".link("tel:112233445566")
Code language: JavaScript (javascript)