Category field dropdown on new Incident record empty in SOW

peterkrzesz
Tera Contributor

Hi,

We have recently upgraded to the Australia release and we encountered an issue in the Service Operation Workspace where during Incident creation a dropdown values for the Category and Subcategory are empty.

 

Our category field selection is dependent on the Service offering and subcategory on the category selection.

 

This is working fine in the classic UI.

 

Anyone experienced this issue before?

 

 

4 REPLIES 4

Hemanth M
Tera Sage

Hi @peterkrzesz ,

 

Make sure/verify  your category dependent logic UI Type set to All (client script), Run Scripts in UI type on UI Policy is All

 

example:

Client script

HemanthM_0-1796037874343.png

UI Policy:

HemanthM_1-1796037904613.png

 

Thank you,
Hemanth
CTA, ServiceNow MVP.

Ankur Bawiskar
Tera Patron

@peterkrzesz 

how are the fields made dependent on Service Offering?

via some script etc?

did you check and debug that?

💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏

peterkrzesz
Tera Contributor

Hi,

This is managed by the OOB functionality on the Dictionary entry for Category field on the Incident table.

 

Dependent field = True

Dependent on field = Service offering

Please see attached.

SOW_issue_2.png

HasanM
Kilo Sage

Hi @peterkrzesz,

OOB, Category on Incident isn't dependent on Service offering (only Subcategory depends on Category), so this dependency is a customisation. A dependency on a reference field matches the offering's sys_id against sys_choice.dependent_value, which can behave differently in SOW.

A few quick checks:

  1. In SOW, select a Service offering. Does Category fill in? If it does, the list is only empty because the offering is blank on a new record.
  2. Check sys_choice (name=incident, element=category). If every choice has an offering sys_id in dependent_value, add a few choices with a blank dependent_value so the field is never empty.
  3. Make sure Service offering is on the SOW form view and isn't hidden by a UI policy.

If Category stays empty even after an offering is selected, remove the dictionary dependency and filter Category with an onChange client script on service_offering (UI Type = All) using g_form.clearOptions/addOption. That works in both UIs. It's worth reproducing in a PDI on Australia and raising a HI case if it's a platform issue.

Docs: https://www.servicenow.com/docs/r/platform-administration/t_MakingAFieldDependent.html