In the spreadsheet provided, I have compiled a list of cities in different states of my country. This information will be utilized in a form; however, it is not feasible for users to sift through an extensive list of all cities listed. Therefore, I am looking to implement a filter system based on the state.
Due to the large logging output, it has been truncated. [[AC, Acrelândia], [AC, Assis Brasil],
[AC, Brasiléia]...
The initial element in each entry signifies the state, and I intend to refine this array so that only values belonging to the chosen state are displayed. For instance, if the selected state is AC, the result would be:
[[AC, Acrelândia], [AC, Assis Brasil], [AC, Brasiléia]...