- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2012 06:34 PM
There is a feature available to change the display value of the "-- None --" option in Select Box fields on forms. Here's the Wiki article - http://wiki.service-now.com/index.php?title=Customizing_Choice_Lists#Changing_the_--_None_--_Display_Value
However, that does not work with Catalog Variables. I created a UI Script that does it for you:
function u_replaceSelectBoxNoneString(variableName, newString) {
try{
var control = g_form.getControl(variableName);
control.options[0].text = newString;
}
catch(err) {}
}
So now you can just call it from an onLoad script to change the string:
function onLoad() {
u_replaceSelectBoxNoneString('action', '-- Please Select --');
}
and you end up with:
Bonus - It actually works on forms as well.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2014 01:10 PM
Just setting this answer as correct as the actual thread was not meant as a question and it cannot be changed because it came from the original Community site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2015 10:35 AM
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2014 01:10 PM
Just setting this answer as correct as the actual thread was not meant as a question and it cannot be changed because it came from the original Community site.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2015 01:37 PM
I know it's a lot of circular linking, but in case anyone finds only this page, I think it's worth also considering UI Messages for a possible global change: Re: Changing display value of --None-- for Service Catalog variables
(I've actually only used the NULL override approach so far, so I can't speak for exactly how "global" the change really is.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-05-2017 06:53 AM
Hello everyone,
Just to provide an update concerning this, the choice value must now be set to NULL_OVERRIDE. Choices with a value of NULL were not being properly saved, from my experience.
Reference: Change the None display value (also works on Helsinki)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-29-2018 05:16 PM
Hi Trevor, seeing this post...any idea if this works for catalog items in Service Portal?