Setting up a feedback

Jul 19, 2021

Hello!

I have a problem setting up a feedback (true/false) in the following situation:

I have more buttons in a slide. The user must select 5 of any (rendom selection), but the sixth button can no longer be selected.

How do I set the feedback so that the sixth selected button will be false?

Thank you!

2 Replies
Judy Nollet

Hi, Nina,

It sounds like you want to disable all the other buttons after the user selects 5 of them. You could use a number variable to track how many buttons have been selected, and disable all other buttons when that number is reached. However, you'd also have to allow the user to deselect one or more of the selected buttons and enable them to change their selection. That's a LOT of triggers.

It'd be easier to just attach triggers to the Check button that do this: 

  • Add 1 to a number variable for each button that's selected. (You will need a trigger to check the state of each button.) 
  • If that number variable is >5, show a warning layer that tells the user they selected too many buttons, and that they have to deselect some before continuing. 
  • You could also show a different layer that tells the user they haven't selected enough buttons if the variable value <5.