capture user response on single choice
# 🤝help
i
I am using a single choice with 2 options for user to select from, User can also provide their own response and not select any value from the single choice. When they do this how do I store what they have sent? I tried using onFailure but that does not capture the text user entered
s
Hi @icy-painting-67927 i'm new to botpress so I'm still learning a lot, but I guess you can achieve that by using
Raw Input
then add an
Advanced Configuration
with
Choice
https://cdn.discordapp.com/attachments/1227898653730148434/1227937794635202570/image.png?ex=662a3930&is=6617c430&hm=d18060f941dba15090f623cfb847f56c7a1e788ae51b46ab34ea001ec7ae4257&
i
Thanks, I just found we can use event.preview to access what user has sent
s
cool! 😁
f
Correct! You can also store it in a variable to use later in the flow. event.preview only holds the latest input from the user.
3 Views