Copy link to clipboard
Copied
I wanted to implement this but couldnt find any tutorials on it, so i figured it out on my own and im making my own tutorial.
Say you want to create a survey with a range and whatever range the user ends up in determines what answer they get. so in my example with 12 questions the interval notation would be
(- infinity, Answer1, 19] or negative infinity < Answer 1 <= 19
[20, Answer 2, 28] or 20<= Answer 2 <= 28
[29, Answer 3, infinity) or 29 <= Answer 3 <infinity
First ready your answer options on the quiz results page. Make the possible answers on each of the quiz question pages and add a new state to them, make this new state blank. Name it so you can find it again. I named mine Answer 1 Blank, Answer 2 Blank, Answer 3 Blank
Add your questions and possible answers, I added the answers as text boxes with hitboxes on top of them
Add your variable, I named it score
Its a user type and i gave it a default value of 1
Next add the advanced actions.
If there are 3 options, Create 3 actions called 1,2,3
Action 1
Increment score by +1
Go to next slide
Action 2
Increment score by +2
Go to next slide
Action 3
Increment score by +3
Go to next slide
Attach the actions to the hit boxes on your question slides This will make it so when the user clicks the hit box, itll add either 1,2, or 3 to the score.
Youll also need another function (Conditional) called DisplayScore
-First Page
If any of the conditions true
Score lesser of equal to (19)
Actions
Change State of Answer 2 to Answer 2 Blank
Change State of Answer 3 to Answer 3 Blank
-Second Page
If Any of the conditions true
score is equal to 20
score is equal to 21
score is equal to 22
score is equal to 23
score is equal to 24
score is equal to 25
score is equal to 26
score is equal to 27
score is equal to 28
Actions
Change state of Answer 1 to Answer 1 Blank
Change state of Answer 3 to Answer 3 Blank
Third Page
If any of the conditions true
score greater than or equal to 29
Actions
Change state of Answer 1 to blank
Change state of Answer 2 blank
Apply this to your quiz result page results and it should work like a charm, message me with any questions you might have
Copy link to clipboard
Copied
I have several blogs about graded surveys. I don't really get what you try to explain here. Why do you not post Preview of the used advanced/shared actions, and mention the events triggering them?