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

jonny27
Giga Contributor

Hi Chase. 

Did you ever get an answer to this or a workable fix? I would love to have some example text in fields on the platform, particularly on my Change Request fields, so users understand what is expected in each of the planning fields. 

Many thanks

Priyankar Hald1
Mega Expert

Hi Chase,

You might find the following link helpful (although this does not work in Service Portal):

https://community.servicenow.com/community?id=community_question&sys_id=e7ee7ee5db58dbc01dcaf3231f9619db

Regards,
Priyankar