Multiple Choice
# 🤝help
h
Hello, I'm building a bot for a school, and I'm having a problem with the multiple choice option. The bot consists in automating the reservation of meetings between parents and teachers. When its time for the parent to select their child, there's a problem with the options. When a parent only has, for example 2 children, in the options it appears the 2 names, and the other options appear when they shouldn't (You can see in the pictures what I mean). Does anyone know how to avoid the left options appearing, and making only the names of their children visible as options? Thanks! https://cdn.discordapp.com/attachments/1248980277926039595/1248980278110720040/Captura_de_pantalla_2024-06-08_a_las_14.33.41.png?ex=6665a307&is=66645187&hm=af385de53a1507a77aa85d5f2b48869a7f7b0e693b9512b37d3ea769074c41ad& https://cdn.discordapp.com/attachments/1248980277926039595/1248980278374957056/Captura_de_pantalla_2024-06-08_a_las_14.34.34.png?ex=6665a307&is=66645187&hm=98b137443b4a35eec2cca66303b07ed1f4d56e6f4ffedacf8b17315f3e671756&
@adorable-hydrogen-71516
a
@fresh-fireman-491 @best-army-74344 My guys, could you help with this?
He wants to do something like a dynamic carousel but with the single choice card instead, is this possible?
w
@hundreds-hair-29881 It is not possible to create dynamic choices (with a variable number of options). One way to do this it to check the number or entries in your array (with a line of code for example) and then redirect to the right node
f
I would like to disagree 🙂 I believe it can be done by changing some parts of this tutorial. https://discord.com/channels/1108396290624213082/1135960836209393676 Looking forward to seeing your version of how it can be done!
Just going to make some food then I can take a look
w
oh great ! I'm going to get up to speed^^
f
a
@fresh-fireman-491 coming in clutch as usual🐐
h
Ok thanks!
I’ll send to you how I have my data structured when I arrive to my house
Thanks
f
You should also be able to check out the example, and then just change it a bit to work for you. But let me know
h
Ok I’ll tell you tomorrow that today I’m not going home until late
153 Views