
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 09:49 AM
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.
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2020 11:14 PM
Nice! You can add it as a column to your variable overview to show if/what placeholder text is set:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2020 11:14 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2020 11:40 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2020 01:17 AM
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