Dropdown with -- none -- and default value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 06:14 AM
I defined a field in the dictionary with the choice list specification of "Dropdown with -- none --".
I also set a default value for this field.
When I create a new ticket it displays the selected default value as expected.
If I select the -- none -- value and save the ticket, the field is saved with the default value. This is not what I expect.
Can anyone explain this behaviour?
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 06:32 AM
Hi Mark,
if you want to show the none and have it saved section 3.4 Changing the -- None -- Display Value in below wiki help you, there listed the what you need to do.
Customizing Choice Lists - ServiceNow Wiki
Best Regards,
/Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 06:47 AM
I will give this a try to see if it works.
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 06:37 AM
2 scenarios :
A : if you would like to have the none value, then I am afraid but you have to remove the default value
B : if you want to display a default value, then select the option 'without none'
Kind regards,
ZA
Do not feel shy to mark correct or helpful answer if it helps or is correct
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 06:50 AM
That sounds like a good conclusion, but I feel the option of having a default value and the "with -- none --" option should work...
Regards,
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 07:49 AM
Mark, if you specify a default value, that means that you don't want the field with no value (which the none means).
Kind regards,
ZA
Do not feel shy to mark correct or helpful answer if it helps or is correct