I’ve noticed that when adding an address in the Address doctype, the State/Province field is an autocomplete field. When I select “India” as the country, it automatically shows a list of states.
Can someone explain how this functionality works? I couldn’t find any related code in the JavaScript file. How is the State/Province field populated based on the selected country?
@NCP I want to add same like this, but not for states.
i need to add it for districts.
if user select one state, i need to show districts of that state.
how can i do this, can you pls suggest me?