Hyperlink
- Last UpdatedJun 25, 2024
- 1 minute read
Use scripts to set and get values for the properties of the Hyperlink control.
Basic
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
Name |
Yes Writable Readable |
To set the property control.findById("ID").tagName = "Value for Name"; To get the value of the property control.findById("ID").tagName; |
|
XML Node |
Yes Readable |
To get the value of the property control.findById("ID").xmlNodeBoundTo; |
|
Description |
Yes Writable Readable |
To set the property control.findById("ID").description = "Value for Description"; To get the value of the property control.findById("ID").description; |
|
Tooltip |
No |
Not Applicable |
|
Hyperlink |
Yes Writable Readable |
To set the property control.findById("ID").displayText = "Value for Hyperlink"; To get the value of the property control.findById("ID").displayText; |
|
URL |
Yes Writable Readable |
To set the property control.findById("ID").value = "http://www.corp.com"; To get the value of the property control.findById("ID").value; |
Appearance
|
Property |
Scripting Supported |
Script |
|---|---|---|
|
Visible |
Yes Writable Readable |
To set the property control.findById("ID").visible = true; To get the value of the property control.findById("ID").visible; |
|
Label Position |
No |
Not Applicable |
|
Retain Space |
No |
Not Applicable |
|
Custom Style Sheet Identifier |
No |
Not Applicable |
Advanced
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
On Data Change |
Yes |
For more information, see scripting guidelines for On Data Change property. |
|
ID |
No |
Not Applicable |
|
Include in Summary |
No |
Not Applicable |
Scripts
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
Name |
Yes |
return "Value for Name"; |
|
Description |
Yes |
return "Value for Description"; |
|
Visible |
Yes |
return true; For more information, see scripting guidelines Visible property. |
|
Value |
Yes |
return "http://www.corp.com"; |
|
Validate |
Yes |
return new ValidationOptions(false, "Error Message"); OR return new ValidationOptions(true, ""); For more information, see scripting guidelines for Validate property. |