Show choices based on other field

Shabbir1
Tera Contributor

Hi Team,

 

we have requirement that we have two choice fields 1.Region 2.category in region we have two choices a)Japan b)Singapore we have to show category choices based on region filed for example Region is Japan we have to show category choices a)a b)b c)c and if region is Singapore we have to show choices a)e b) f c)g can anyone help me how to achieve this

3 REPLIES 3

Animesh Das2
Mega Sage

Hi @Shabbir1 ,

 

You can simply configure the dictionary of 'Category' as dependent of 'Region' by setting the 'Dependent field' tab and then under the 'Choices' tab put the respective values from 'Region' choice values in each 'Dependent value' field.

Please have a look at below two screenshots of OOB incident form showing how 'Subcategory' field choices are configured to be dependent on 'Category' field choices.

 

AnimeshDas2_2-1729435246522.png

 

AnimeshDas2_1-1729434909852.png

If this address your question, please mark this response correct by clicking on Accept as Solution and/or Kudos.

You may mark this helpful as well if it helps you.

Thanks, 

Animesh Das

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Shabbir1 

you can have the 2nd field dependent on 1st

OR

you can have onChange client script on 1st to show relevant options in 2nd one

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

ersureshbe
Giga Sage
Giga Sage

Hi, 

If you are trying from Service Catalog through variables then you can use 'Catalogue look up variables'. Please refer below link for further understanding.

https://www.servicenow.com/community/developer-articles/catalog-data-lookup-definition-on-any-table-...

 

Regards,
Suresh.