How to add greyed-out ghost text to a string field on form

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2019 01:06 PM
Hello, we have an application we are building that has as requirement of having some greyed/washed out text in a string field to provide more information which gets overwritten when you write into the field.
The field should say 'Please provide a detailed explanation of the purpose of this travel as well as a justification of this travel.'
The field looks as follows:
I've checked the dictionary of the field as well as configure label option and cannot find a way to add this.
The help and hint fields are NOT what we want to use, it's unreasonable to assume the user is going to know to hover their mouse over the field label to see more information to pop up.
We need this washed out text in the field textbox itself, similar to how you can do in catalog item variables using 'example text'.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2019 01:18 PM
Following threads should help
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2019 07:40 AM
Hi Sanjiv, thanks for the information. Your second link is referring to catalog item variables which doesn't apply to this, as this is a string column on a table.
Regarding the first link, I did try what they suggested and it did not work. They suggest creating an onload client script, and then a pairing UI script that calls the on load client script and using what they provided didn't do anything.
Also, using the UI script they provided, it throws the following error:
If you click OK and try it anyways, it just doesn't work.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-19-2019 10:18 AM
You are missing a '}' and the end. Add that and try
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-23-2019 10:40 AM
I apologize the first screenshot didn't show the end, here's a better picture. The braces are matching correctly:
Also, in case you point it out, I have tried replacing 'variableName' in the UI script shown directly above with the name of the actual field on the form and it doesn't do anything.