Placeholder on Reference field

ericgilmore
Tera Guru

Noticed something today. A reference field on one of my items somehow had placeholder text when empty. After doing a search for whatever magical catalog client script I may have created, I came up with nothing. Then it struck me, the field I was looking at may have been a single line text field in the past. I checked by editing the field and temporarily switching it to single line text. Behold, the Example Text field popped up, and there was the placeholder text I'd previously set.

I tested this again on another item. I set the type of a field back to Single Line Text, added something to the Example Text field, changed the type back to Reference and saved. My Reference field now has placeholder text.

Hope this works for others.

1 ACCEPTED SOLUTION

Willem
Giga Sage
Giga Sage

Nice! You can add it as a column to your variable overview to show if/what placeholder text is set:

find_real_file.png

 

 

View solution in original post

3 REPLIES 3

Willem
Giga Sage
Giga Sage

Nice! You can add it as a column to your variable overview to show if/what placeholder text is set:

find_real_file.png

 

 

DirkRedeker
Mega Sage

Hi

The reason is, just because you just changed the type of the variable, the other fields of the Catalog Variable definition are not cleared out. So, their former text and content is kept.

When you switch back, the "former" content will appear to be back.

You can have a look at the table "item_option_new", which holds the Catalog Variable definitions.

It is a quite wide table with a lot of columns needed for the different types of data you can use in variables.

Let me know if that solves and answers your question and mark my answer as correct and helpful.

BR

Dirk

The SN Nerd
Giga Sage
Giga Sage

Explained below

https://community.servicenow.com/community?id=community_blog&sys_id=bc0e6a2ddbd0dbc01dcaf3231f961931


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022