Make "Continue" button appear after 2 items selected

Hello, I have a slide with 4 options, 2 of which much be selected for the continue button to appear. I have tried the following. Setting continue as hidden on load, then giving a variable "Played" a value of 0, with 1 being added to it each time a choice is made, so that when "Played" is ==> 2 Continue appears. It's not working.
I welcome any other options.

15 Replies
Virginia Driscoll

Ok, but they *need* to pick two and only two. That's where the functionality gets stuck. I can't figure out how to have a following screen omit the choice from the previous slide, either, so I was going the route of hiding one button after it is selected and then moving on after a second completes it's layer.

Robert Lengacher

Hey Virginia,

I think I've got this Pick Two and only Two figured out. I think the problem was that there were probably some circular logic problems. I solved this by creating two different rectangles for each choice right on top of each other. Gotta run, but here's the project file for you to figure out. Good luck on part 2 of your challenge

Steve Flowers

Hi Virginia,

Take a look at the attached. This uses two triggers per button and adds or subtracts depending on the state of each button / object when it's clicked. Adds to a tally. Another trigger checks the tally on change and shows another object when it's 2 or greater. Could add another to hide that object when less than 2.

Robert Lengacher

Steve: My first failed version was built exactly like yours, based on the state of the object, but I would work. I think it may have something to do with the fact that I allowed the software to add the selected state automatically when I originally inserted a Freeform Pick Many.

I just rebuilt it that way, but I added the selected state manually to each rectangle and it worked perfectly. Strange.

Virginia: Although both versions work, I recommend Steve's approach because it involves fewer on-screen elements.

Mel Ruth

Hi Virginia - the way you have built the interaction looks like it should work but I have a couple of troubleshooting suggestions for you:

1) The order that the triggers are in matters. If your trigger that shows the layer, "Always on My Mind", is activated before the trigger that adds 1 to your "Played" variable, it will have already jumped to the new layer before it adds 1 to "Played", keeping its value from going up and, therefore, never getting to the value of 2 in order to show your "Continue" button. Because the order of which trigger happens first is rather confusing (I can never remember if it's the one at the bottom of the stack that is activated first or the one at the top!), I add a temporary text box on my slide to see what the variable's value is and to make sure that it changes when and how it is supposed to. By adding a text box with %Played% in it, when you preview the slide, you will be able to see if the variable is changing or getting missed. If that's the culprit, just switch the order of the "Show layer..." and "Add 1..." triggers using the light blue arrows in the trigger area to move one up or down and play the slide again - that should solve it.

2) Another way to get around the trigger order problem is to put the trigger that changes your "Played" variable on the "Always on My Mind" layer - just set it to "Add 1 to Played when the timeline ends for Always on My Mind" or something like that. I'm assuming that the "Always on My Mind" layer shows, then returns to this main screen for the user to choose a second button, so that would work. If the variable changes while the other layer is showing, the "Continue" button should be visible once the user returns to this main screen after viewing the second selection.

I hope that makes sense - I can make you an example if you need it but hopefully you can follow this as I think trigger order might have been your only problem in this case!

Robert Lengacher

Virginia - I have created a sample that accomplishes the two main things that you wanted, if I interpreted your question appropriately

  • Slide 1 forces the user to Pick Two - Any Two to display the continue button (I used Steve's states version instead of my version with two overlapping shapes)
  • Slide 2 shows only the two unselected shapes from the previous slide. I accomplished this by adding a T/F variable to evaluate whether or not each shape is selected when the continue button is clicked on slide 1.

When you go back to slide 1, I have it set so everything resets. Here's a demo, and the story file is attached below.

Virginia Driscoll

Thank you, everyone! I knew there was a way, I was just missing on step. My problem (or one of them, at least) was I was making the buttons "Hidden" after they were selected so they wouldn't be selected a second time. And I was sending the user between layers and tried to add the "add" value there (unsuccessfully).