Rich Text
- Last UpdatedJun 25, 2024
- 2 minute read
Use scripts to set and get values for the properties of the Rich Text 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; |
Appearance
|
Property |
Scripting Supported |
Script |
|---|---|---|
|
Show Toolbar |
No |
Not Applicable |
|
Visible |
Yes Writable Readable |
To set the property control.findById("ID").visible = true; To get the value of the property control.findById("ID").visible; |
|
Read-Only |
Yes Writable Readable |
To set the property control.findById("ID").readOnly = true; To get the value of the property control.findById("ID").readOnly; |
|
Label Position |
No |
Not Applicable |
|
Label-Control Area |
No |
Not Applicable |
|
Width |
No |
Not Applicable |
|
Height |
No |
Not Applicable |
|
Retain Space |
No |
Not Applicable |
|
Custom Style Sheet Identifier |
No |
Not Applicable |
Validation
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
Mandatory |
Yes Writable Readable |
To set the property
control.findById("ID").isMandatory = true;
To get the value of the property
control.findById("ID").isMandatory; |
Advanced
|
Property |
Scripting Supported |
Example |
|---|---|---|
|
ID |
No |
Not Applicable |
|
Include in Summary |
No |
Not Applicable |
|
Toolbar Options |
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 for Visible property. |
|
Read-Only |
Yes |
return false; For more information, see scripting guidelines for Read-Only property. |
|
Mandatory |
Yes |
return true; For more information, see scripting guidelines for Mandatory property. |
Note: Entering or editing values in the Rich Text control is not supported in the Mozilla Firefox browser.