Requirement is to populate Country and City names in drop down

Community Alums
Not applicable

Hi Experts, 


Requirement is to populate all countries and based on the country selection need to populate city names which are comes under that country in next question choices. Reffering to cmn_location table. 
Kindly help me on achieving this,

find_real_file.png
Thanks in advance,

Chaithra

1 ACCEPTED SOLUTION

Voona Rohila
Kilo Patron
Kilo Patron

Hi Chaitra

what is the field type of city and country?

Check below screenshots for refernce:

Country :

find_real_file.png

city based on country 

find_real_file.png


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

2 REPLIES 2

Musab Rasheed
Tera Sage
Tera Sage

Hello,

Try to add below in reference qualifier of City field.?

javascript: 'name=' +current.variables.country

Regards

Please hit like and mark my response as correct if that helps
Regards,
Musab

Voona Rohila
Kilo Patron
Kilo Patron

Hi Chaitra

what is the field type of city and country?

Check below screenshots for refernce:

Country :

find_real_file.png

city based on country 

find_real_file.png


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP