Hide/Show drop down values based on another reference field value

Pandu3
Tera Contributor

Hi All,

Based on Country selection, languages should be displayed in Language field on customer_contact record.

1)Country reference field (core_country)

2)Language is drop down list

 

Pandu3_0-1696592349784.png

 

Pandu3_2-1696592747172.png

 

Ex : Country : Austria , Languages : English, German

       Country : Canada , Languages : English

       Country : Netherlands , Languages : English, Dutch

 

Can anyone help me on this requirement. Thanks in advance.

 

 

 

14 REPLIES 14

RaghavSh
Kilo Patron

Make use dependent fields dictionary attribute on language field.

Refer : https://docs.servicenow.com/en-US/bundle/vancouver-platform-administration/page/administer/field-adm... 


Please mark the answer correct/helpful accordingly.


Raghav
MVP 2023

Pandu3
Tera Contributor

Hi @RaghavSh ,

Thanks for quick reply, I tried what you said but it's not working.

can you share the screenshot? did you add the country values/sys_ids in the dependent field of language choices in sys_choice table?


Raghav
MVP 2023

Pandu3
Tera Contributor

Hi @RaghavSh 

1)Language field is available on sys_user table it is extended to customer_contact table.

2)country field created on customer_contact table.

In Language dependent field country not showing.

Pandu3_0-1696605456738.png

 

Can we do this with script? 

Thanks in advance.