Welcome to the community @isaacmugabo! You could do the same as outlined in the images shared below:
In the survey tab of your xlsform:
In the choices tab of your xlsform:
In the csv file: state code
In the csv file: district code
In the csv file: village code
Data entry screen as seen in Enketo:
Reference xlsform:
select_one_from_file.xlsx (15.7 KB)
CSV file (state code):
State_Code.csv (245 Bytes)
CSV file (district code):
District_Code.csv (647 Bytes)
CSV file (village code):
Village_Code.csv (1.5 KB)