- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2017 05:42 AM
Hi All,
I have a couple of choice lists that seem to be showing a blank value at the bottom of the list. 1 of these choice lists is inheriting its choices from another field and the other is being populated by an onLoad client script. The blank option can be selected but not saved so it's not causing a problem per se but it's ruining my aesthetic!
Has anyone seen this happen before and can anyone advise on how to get rid of it?
Solved! Go to Solution.
- Labels:
-
Instance Configuration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2017 07:00 AM
onChange client scripts can also run onLoad. Check the options on that client script and check in the script if it is even checking the isLoading flag.
Ex:
if (isLoading)
return;
That will NOT run the onChange client script onLoad. if it is running onLoad, then you may have found the smoking gun.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2017 05:47 AM
Hi Dave,
Do you mind sharing the client script that is populating the choice list or sharing some screenshots?
Manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2017 05:58 AM
Hi Manish,
This is what one of the choice lists looks like, this is the one being inheriting it's choices from elsewhere (a field on the cmdb_ci table)
On the parent field the choice list looks like this:
The client script is a bit long, i can provide it if you want but as it's happening on an unscripted field i feel like this is due to something else.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2017 06:10 AM
Hi Dave,
Have you tested this on multiple browsers?
Also something to check - on the list that inherits from another, is the original (source) choice list OK?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-10-2017 06:21 AM
Hi Chuck,
I've tested on Chrome and IE and the issue exists on both, i included a screenshot of the parent choice list on my reply to Manish above and you can see it there is no blank option on the parent choice list.
One addendum i must make is that the 'non-scripted' choice list actually does have a script running on it but it's an onChange client script so i wouldn't have thought it would have any bearing. When i open a new record the choice list shows the blank option, once i have populated the form and saved it the choice will have been populated by the client script and when i reopen the drop-down the blank option is no longer there....!
Maybe the script is having an effect after all, i'm just not sure why it's inserting a blank option at the bottom of my list.