How to change the field value through Override?

Rajesh98
ServiceNow Employee
ServiceNow Employee

How to change the field value through Override?

6 REPLIES 6

Ali Shaikh1
Giga Expert

Hi Rajesh,

 

Consider this Oops scenario:

 

In the base system, the default value for the State field on the Incident form is New, but you want the default value to be In Progress instead:

image

 

So you right-click the State label to show the choice list for this field, and filter it for the Incident table. You note that the Value corresponding to In Progress is 2:

image

 

Then you go back and right-click the State field on the Incident form again to configure the dictionary for this field, changing its Default value to 2:

image

 

It works! The default State value for new incidents is now In Progress. But there are also some unintended consequences. For example, the Problem form now displays a default State of Known Error. That's not right!

image

 

And some other forms are affected as well.

 

 


Kindly mark the answer Correct and Helpful if this answers your question.

 

Thanks,

Ali.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Rajesh,

are you saying the default value you want to override?

you need to configure the dictionary; go to the related list and click new for dictionary override; check the box of override default; set the value you want

find_real_file.png

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Tony Chatfield1
Kilo Patron

Hi, just a word of caution; Overriding 'state' values may cause issues\complications with reporting across all tasks types.

I’m not saying it’s not the correct thing to do; just be sure you consider any implications before proceeding, as the existing vendor configuration cam already makes it difficult to provide a consistent Task level view - which is often something management like to request in overview type reports.

Saurabh singh4
Kilo Guru

Hi Rajesh

Best Practice: Use Dictionary Overrides to change field settings on extended tables.

To change the initial state on incident tables:

  1. Navigate to Incident > Create New.
  2. In the State field, open the choice list.
    The initial state is selected as New.
  3. Right-click State and select Personalize Dictionary.
    The state value is specified in the Dictionary Entry for this field. The state field is defined on the task table, with a default value of 1.
  4. Go to Choices.
    This displays a list of choices and corresponding values on the state fields. Active fields have a value of 2.
  5. Personalize the list columns to view the table and corresponding choices:
    • Click the gear icon.
    • Add Table to the list.
    • Click OK.

The initial state is New because it corresponds to the default task state value of 1. The initial state for incidents should be Active, with a value of 2. Use Dictionary Overrides to make changes only to the table specified.

To change the default value:

  1. Navigate to Dictionary Overrides > New.
  2. In the Table field, select Incident.
  3. Select Override default value.
  4. Enter a value of 2.
  5. Click Submit.

When a new incident is opened, the initial state is now Active with a default value of 2.

Use the same steps to set the initial state and values for problem tables.

 

Please mark my answer correct and helpful, If this helps you in any way

Saurabh