Show values in dropdown field based on values selected from first dropdown field in record producer

Pat Surtan
Tera Expert

Hi,

 

I have requirement to show values on field 2 based on a value selected from field 1. For example, if field 1 value = 1, show field 2 values a, b, and c. If field 1 value = 2, show field 2 values as xyz, and so on. Can I do this without scripting and using dependent value field?

4 REPLIES 4

Anil Lande
Kilo Patron

Hi,

Please check below thread, multiple solution are provided on this to resolve similar issue.

https://community.servicenow.com/community?id=community_question&sys_id=c246f8acdb757814bb4a474d1396...

 

Please try those solutions and let us know if you face any issue.

 

Thanks,

Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Hello Anil,

Looks like the only way to achieve what I want from a Service Portal standpoint is to use OnChange client script. Is this correct?

@Pat Surtan Have you checked below link?

https://community.servicenow.com/community?id=community_article&sys_id=1ce7dceedb5914101cd8a345ca961...

If this does not work in your case then you need to go for onChange client script.

Use addOpetions and removeOptions to manage choices based on field.

 

Thanks,
Anil Lande

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Marc Mouries
ServiceNow Employee
ServiceNow Employee

Yes you can. This is how the subcategory field on the incident table is configured.

  1. Open an Incident
  2. Right-click on the label of the "Subcategory" field in the form
  3. Select Configure Dictionary.
  4. Notice the "Use dependent field" box is checked
  5. The "Dependent on field" is set to "Category
  6. and then each choice at the bottom has a Dependent value

find_real_file.png