Do not want Change Record impact field to show default value

Arijit Saikia
Tera Contributor

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

2 ACCEPTED SOLUTIONS

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.

View solution in original post

Nishant8
Giga Sage

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.

View solution in original post

5 REPLIES 5

GopikaP
Mega Sage

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'SC1.png
  • And in your dictionary override, give the default value - the same value you had given in 'Numeric Value here.SC2.png
  • This won't affect other tables that extend 'Task' - SC3.png

Arijit Saikia
Tera Contributor

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', '');
}
}

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.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Arijit Saikia 

 

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]

****************************************************************************************************************