The CreatorCon Call for Content is officially open! Get started here.

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

Chase Stevenson
Mega Guru

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:

find_real_file.png

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.

find_real_file.png

We need this washed out text in the field textbox itself, similar to how you can do in catalog item variables using 'example text'.

6 REPLIES 6

SanjivMeher
Kilo Patron
Kilo Patron

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:

find_real_file.png

If you click OK and try it anyways, it just doesn't work.

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.

I apologize the first screenshot didn't show the end, here's a better picture. The braces are matching correctly:find_real_file.png

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.