- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 10:40 PM
Hi,
For the Change table [change_request] I have a requirement to disable default value (currently default) for the 'impact' field.
I tried creating a dictionary override by making the default value blank.
It does not work [when I create new Change, the 'impact value now is 'High'].When I inspect the Choice List specification, the "Choice = Dropdown without - None --must specify a value" is causing the issue.
As the 'impact' field is inherited from the task table , and I make any changes to the Choice List specification, it will impact other tables e.g Incident which also uses the 'impact' field.
Please advise.
Refer to screenshots
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 11:31 PM
Hi @Arijit Saikia , so you want to keep the impact field empty while creation only? not after that? So, you don't need an extra choice for the field? Then this onLoad is okay, but test thoroughly to make sure it is not affecting your existing change flows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2025 12:46 AM
Hello @Arijit Saikia, please verify 'Risk Conditions' in your environment before changing the value of impact field. Regarding your requirement, yes, you can easily get this done with help of a client script, but analyze whether its adding any value since if user doesn't select any value from Impact, still default value will be considered when CR is submitted while on the form it might appear as blank.
if users don't want Low as default value, you can change it to different value. please think.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 11:20 PM
Hi @Arijit Saikia You can try the following -
- Right click the 'impact' field in change_request table and and select 'Configure Choices'\
- Select Apply to Table as 'Change Request'
- And in your dictionary override, give the default value - the same value you had given in 'Numeric Value here.
- This won't affect other tables that extend 'Task' -
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 11:22 PM
Is it a good idea to create a onLoad client script?
function onLoad() {
// Check if the record is new (i.e., the Sys ID is empty or undefined)
if (g_form.isNewRecord()) {
// Set the Impact field to blank
g_form.setValue('impact', '');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 11:31 PM
Hi @Arijit Saikia , so you want to keep the impact field empty while creation only? not after that? So, you don't need an extra choice for the field? Then this onLoad is okay, but test thoroughly to make sure it is not affecting your existing change flows.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 11:26 PM
Did you check this earlier or not, on change impact value comes from risk conditions. So soon as the change form is loaded in the backend the risk conditions run and populate the impact. Please check that logic once well and share feedback.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************