Forum Discussion
Radio Buttons for Likert Scale
So I created a separate variable for each row and created new button sets. I was still running into the issue of it duplicating every time you click a button (i.e. 1 + 1 over and over again with row one if you wanted) I attached the newest version. I've made variables for each row and a calculation layer that sets to 0 when the timeline starts there and has each variable add to that Count1 variable when it starts.
Any help is appreciated! I'm not sure how I broke it this time
- JudyNollet4 years agoSuper Hero
Your button triggers are out of order and more complicated than they need to be.
- Triggers run in order, so you need to set the value before you show the calculation layer.
- Also, you don't need a condition in the trigger that adjusts the variable. When a radio button is in a button set, clicking it puts it in the Selected state. The only way to deselect it is to select another button in the set.
- This shows your triggers on the left and how the updates should look on the right:
Also, the calculation-layer trigger that resets the value to 0 needs to come first. (Again, trigger order is important!)
Finally, I strongly suggest that you get in the habit of giving objects meaningful names, especially one used in interactions. Good names makes development and troubleshooting much easier. For example, your radio buttons could follow a naming convention such as "r1-b01." That would indicate the row and the button value. Note that I suggest 2 digits for the b##, because there are 10. This will keep the buttons in order in the trigger panel (which uses alphanumeric order).
Related Content
- 5 days ago