o2d
1
Hi,
I have a table with only 1 column with the data I want to list down as options in drop-down menu.
I have a query called populating the data from that table.
How do I call them into the drop down as options?
This is my table
![image](https://community.appsmith.com/uploads/default/original/1X/c0ac6a80f0c6e0a3acfac70a4dfe52e55f341189.png)
These are the results from the machine query
How do I do this?
pranav
2
Hey! Please checkout this zero to hero tutorial on drop downs - Everything About The Select Widget: HDIDX #6 - YouTube
TLDR;
Add this in your options -
{{ <query_name>.data.map(i => ({ label: i["Machine List"], value: i["Machine List"]})}}
o2d
3
Hi Pranav,
Thanks for your time. I actually figure it out soon after the post, forgot to close it.