How to display dynamic Drop Down

I have an array and it contains 3 elements and i want to show this array as a drop-down in the emulator.

@Murali_Peddisetti Try using the below in your code

const payloads = await bp.cms.renderElement(
‘builtin_dropdown’,
{ text: 'Please provide your Email ID ',label
: ‘Email’, typing: true },
event
)
await bp.events.replyToEvent(event, payloads)

1 Like