https://discord.gg/botpress logo
❓ How to Create a Dropdown List in Botpress and St...
# 🤝help
w
Hi Botpress Community 👋, I'm building a flow where the user needs to select a solar system size, like: 4KW 6KW 10KW I’d like to present these options in a dropdown-style UI rather than the default radio buttons that come with the Multiple Choice card. 🧩 What I’m Trying to Achieve Show the options in a dropdown or select-style interface. Store the selected value (e.g., 6KW) into a variable like {{workflow.proposedSystemSize}}. Later, use that variable in text cards or API calls. ❓ Questions How can I create a dropdown list instead of a multiple-choice button layout in Botpress? What’s the correct way to store the selected option (either label or value) into a workflow variable? Any tips, best practices, or example JSON structure would be greatly appreciated! Thanks 🙌
r
There is no card in the card tray which can be used to show options in the form of a dropdown - style UI , BUT while checking out the docs of ' Runtime API ' I found out that they have mentioned dropdown as a type of built-in message types so there might be a way of implementing that I have not yet came across of.
This what I 've obtained by using Chat-gpt - Inject custom HTML via Webchat channel If you're using the built-in Webchat channel: Add a Send Custom Event card that injects a dropdown UI inside the chat window via JavaScript. Listen for that event in your frontend embed and render a , capturing the user's choice and sending it back to Botpress. It's a bit hacky, but works if you control the chat embed.
It also says that if more than 4 options are present then it switches over to the dropdown style I hope you find out a solution to your problem
5 Views