Two level dropdown with filter

Hello,
I have just started learning development in erpnext and frappe. I want to create two level drop-down with filter so is it possible ?? for example In Employee doctype there is address field. I want to add city, state and country drop-down that filters result based on the other drop-down like selecting country India i should get all Indian states in state drop-down (i have achieved upto this using ‘is child table’ in country doctype). and on basis of selected state I want to display list of city of that state in city drop-down field. so please can any one help me on achieving this.

Regards
Deep Trivedi

1 Like

You should change the options property in the drop down using cur_frm.set_df_property. See this: