What type of field has the "show as url" parameter?
Line.
In this case, it is assumed that the line itself is the complete url
that will be followed when clicked.
Example with the on-double-click trigger action code
But not only a string can be formatted as url
. Action codes have a trigger execute action code on click. It is triggered by a double-click in the field if it is locked.
This trigger has an extension — format click as URL. If it is enabled, the value in the field will be formatted as a url
and the action will be executed when clicked.
For example, we need to open addresses on an external site depending on the ID number. We record the numbers in this field and enable execute action code on click and format click as URL.
The action code will look approximately like this:
= : linkToScript(uri: str`"https://example.org/document/" + $#nfv`; target: "blank")