Single Choice with different Variables
# 🤝help
b
hm, what do you mean? you'd like to save the response to a variable?
s
I totally messed with the explanation hahaha. I wonder if I can take each option of the 'Single Choice' and insert it to a variable with different name(string) so I will be able to execute a code and do checking on that to have 2 different outcomes@bumpy-butcher-41910 Example: Option 1 - Buying options => insert to a variable as Buyer Option 2 - Selling options => insert to a variable as Seller Option 3 - Contact Support =>not getting into the variable Make different outcome for Buyer\Seller
b
Hi Bronz, Robert made a video earlier to talk about capturing multiple variables (

https://www.youtube.com/watch?v=EK30zRYwlkg

) Before capturing them, you have to create variables first. From this video (

https://www.youtube.com/watch?v=mUbejiHGksM

), you can learn how to do it.
b
yep - as Patrick shared, those videos are helpful! in the photo above, just use the "store result in" option to store their choice in a variable
s
Isn't the "store result in" stores the option it self? Since my option is going to have long text and i want to put a shorter version of it.
b
ah I see - in that case, when a user picks an option and flows to a new node, just use an Execute Code card to manually set the value of the variably
e.g. when they pick Buying options, just use an execute code card to set the value of the variable to Buyer
s
Got it, it will have to be handled outside of the node with execute code.
31 Views