Hello everyone
I’m trying to create a dropdown list were the list items is a list of countries (I have a list of countires in an XML and json format) and I want to load that static in /apps so I can reference it in form options (picture below)
My question is: Is there anyway that I can load my defined list ? or do I need to create each node for each country (picture below)?
Thanks in advance.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
In this case you can use datasource and return list items, you can create datasourec from json as well
e.g. https://aemlab.blogspot.com/2019/07/aem-touch-ui-dropdown-from-json.html
Hi,
you need to create a node for each option
please check https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-create-a-static-lis...
Hi @arunpatidar
Thanks for your answer but there's no way that I can read I defined list ?
My list have more than 150 values (countries) and i would take too much time to create a node for each option...
I would be easier if I could read my defined list, If any ideas about how i could read the list it'll be very helpfull.
Thanks
Hi,
In this case you can use datasource and return list items, you can create datasourec from json as well
e.g. https://aemlab.blogspot.com/2019/07/aem-touch-ui-dropdown-from-json.html
Hi @arunpatidar
Can i select an unstructured node with all the data? here my crx
in my IDE
I want something like this so i can just copy the countries from my XML..
Yes, you can do it via datasource, there you can parse or query this nodes and create dropdown using datasource.
Hi @odabio, I am not sure if this is one time action or you would like to maintain your list in the future, but you can consider below solutions that should allow you to automate list creation process.