Placeholder for String field on the From

Maria31
Tera Contributor

Hello all,

Could you please advise how to add Placeholder (Example text) to the field on the form in ServiceNow? I need something similar to Example text added to Variables?

 

For example I want to add to Description field to Incident form the following Placeholder (Example text):

find_real_file.png

1 ACCEPTED SOLUTION

You could achieve this with an onLoad client script like the example I created here.

find_real_file.png

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

View solution in original post

5 REPLIES 5

Zach Koch
Giga Sage
Giga Sage

If I am understanding the question correctly, you are looking to add Annotations to your variable field. 

Go to where you are configuring your variable, and go to the Annotations tab.

find_real_file.png

 Make sure to check these two boxes if you would like it to show all the time.

find_real_file.png

You will get a box under your field like this

find_real_file.png

If this is not what you are looking for, and you are wanting the field to be actually filled in with the example text, you will need to use an onLoad client script to fill the fields with the values you would like to be there.

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

I need to add this text as a Example text NOT to Variable (Catalog Item on Service Portal), but to String field on Incident formfind_real_file.png

You could achieve this with an onLoad client script like the example I created here.

find_real_file.png

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

The proposed solution works similar to Default value, and I was looking for Placeholder value, I found what I was looking for:

https://community.servicenow.com/community?id=community_question&sys_id=c0e19baddbdcdbc01dcaf3231f961995&view_source=searchResult