Add Placeholder Text in String Field
Overview
To add example or placeholder text to a field, create a Client Script that uses the .placeholder property on the field’s control object. Placeholder text is purely cosmetic it is not treated as an actual value for the field. For example, a field with placeholder text is still enforced as mandatory, and the placeholder will not be submitted if the user leaves the field blank.
Template
| |
Example
The following onLoad Client Script adds multi-line placeholder text to the u_asset_s field on the Hardware Disposal Order table, showing users the expected format for entering assets:
Placeholder Field Text.js
| |
Last updated on