Forum Discussion
AriAvivi
13 years agoCommunity Member
Using a survey to set a variable value
Hello All,
I want to have a user set a variable value by selecting from a list. I am thinking that I could set up a survey question with each of the possible choices then tell storyline to set t...
MariaCS
5 years agoStaff
Hi, Luke, and welcome to E-Learning Heroes! ✨
You are correct that the Pick one survey type does not automatically create a variable. However, you can use the state of the button to assign value to a variable you create.
I'm attaching a sample .story file, but here's a recap:
- Create a number variable (we'll call it Choice).
- Add triggers assigning value to the variable depending on the button selected:
- It's important to make sure you're not shuffling your choices.
Here's an example of what it will look like:
You can also use the value of that variable as a condition (if you want to branch scenarios, for example).
Let me know if this works!
Related Content
- 10 months ago
- 10 months ago
- 10 months ago
- 4 months ago