why default value is not working in select box variable on an incident record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2022 06:57 AM
i have select box variable o incident form having 3 question choices, out of which i have marked value 3 as default but on service portal not getting the 3rd value as default.
when include none is selected im getting none displayed on that variable on incident form otherwise when none in not included 1st value will get displayed by default instead of 3
PFB the screenshot :
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2022 08:14 AM
Hi,
it's a variable
When include None is selected and default value is given it will show that default value
When None is not included and no default value given then the 1st choice based on order will be shown as default
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2022 09:13 AM
But in this case as you can see i have not included none and give 3 as default value still the 1st choice is getting displayed on the variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2022 08:34 PM
Hi,
Did you try creating fresh variable and check it?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2022 10:38 AM
The data type for the value field of a question choice is a string, so update the default value to "3".