We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Field dependency between Two fields in Incident form

chaithanya gund
Tera Contributor

Hi Team,

 

I have two fields in Incident Form 1. Sub Category (Which is Choice List ) and Service Offering field ( which is a Reference field to Service_offering table where 44 choices are present). 

 

My Requirement is when a Particular Sub category is selected for Ex: Hardware then only Service Offerings related to Hardware should be visible in the Lookup of Service Offering (Ex: 4 Service Offering are related to Hardware) and remaining 40 Choices in table shouldn't be Visible. And in the same way Sub category is selected for Ex: Software then only Service Offerings related to Software should only be visible in the Lookup of Service Offering and other choices should be hidden.

 

How can i Achieve this requirement. Request you to provide your Suggestions.

 

Thank You!

3 REPLIES 3

UmesH77
Giga Guru

hey @chaithanya gund  , 

Service Offerings are dependent on the service field (business_service) and that is OOTB servicenow configuration.

still you want to override that you can change the reference qualifier and select it as Advanced and "javascript:'parent='+current.business_service;" chnage code according your need .

 

but that is OOTB configuration , so make changes carefully .

 

regards, 

umesh

 

Thank you Umesh for your response . Based on your explanation I got the Relationship between Service Offering and Business Services. 

So I want to display only a set of options in service offering based on sub category selection. Is it possible with Reference qualifier or client script is required? 

please suggest best solution to display only service offering choices based on sub category selection 

 

Thanks.

Ankur Bawiskar
Tera Patron

@chaithanya gund 

it's a simply requirement which you can achieve with advanced reference qualifier on reference field

what did you start and where are you stuck?

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

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