@CoderNadir Welcome to the forum! Yes, this can be done but without knowing the structure of your data from the query, it is difficult to explain how to go about doing this. If you can share more information, that would be great. You can also search the forum community for similar questions, such as: Set Values of Cascader components - #8
I'll appreciate it if you show me how can I use an external library to display the below format of the states and each state with its cities, specifically for united states plz
Field names doesn't matter what matters is the library that provide states and its cities and how to implement this with Cascader New (or even maybe another component)
Are you calling an external API to get this information?
Or are you adding the library to your app?
Also, are you using a cascader to allow the user to drill down into each state to select either a capital or another city? I ask because the formatting will matter depending on your use case.
Add 2 components of select, and then load states in the first one and the second one I'll load the cities in case the States component has a selected state, and these components values will be used to filter a table.
For the City component when I type I want to search for cities
Target Country: United States
So to make it simple just show me how to use an external library that provides this kind of data (states/cities) and I'll do the rest on my own
If you're only using select components, you can access the array from your previous message directly without any extra Javascript transformation in the query. Instead, each select component data source will have some Javascript to filter out the appropriate data like this example: