I was trying to fetch the data from a doctype and show that in a form dropdown, I tried by using data script and configured data key to the field but this didn’t work
data.paddles = frappe.db.get_all("Paddles")
above is the data script i used .
Don’t know what mistake i am doing here
Hi @cherrycharan,
For Dropdown, use Select Tag and Then Add Options Tag in it. Wrap this Options Tag in a Container and Repeat this Block. Set Your Data Key paddles for this repeated block. And Set Data Key name for Options. Your structure will be look like
Hope this helps you.
Thanks,
Daizy Modi
3 Likes
@DaizyModi Thanks! This worked