Highlighted

Click button 3 times to show another button

Community Beginner ,
Dec 04, 2018

Copy link to clipboard

Copied

Hi Guys,

Pretty simple really, I've been using Captivate for years I can do some pretty advanced stuff. But this is really starting to annoy me and I have followed every forum on here relating to this and nothing has produced successful results.

It really is that simple. I have one button, I want to click that button 3 times to show another button. That's it. Strangely, if I have for example multiple buttons I want to click to show another button, I can do that no problem. But for some reason just wanting one button to do the same thing is seemingly undoable.

Any help would be appreciated.

Most Valuable Participant
Correct answer by Lilybiri | Most Valuable Participant

Create a user variable v_counter with a default value of 0. You coudl also use the On Enter action of the slide to set its value to 0, which would be necessaery if you want the slide to be revisited. Hide the second button, Bt_2 in output. in the Properties panel or with the On Enter action.

Create an advanced action for the first button. Since I don't know which version you are using, I will not post a screenshot. But you'll need two decisions: the first one has to happen always and is a standard action

Increment v_counter by 1

The second decision is conditiional and cehcks the value of the variable:

  IF v_counter is eqqual or greater than 3

      Show Bt_

Views

103

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Click button 3 times to show another button

Community Beginner ,
Dec 04, 2018

Copy link to clipboard

Copied

Hi Guys,

Pretty simple really, I've been using Captivate for years I can do some pretty advanced stuff. But this is really starting to annoy me and I have followed every forum on here relating to this and nothing has produced successful results.

It really is that simple. I have one button, I want to click that button 3 times to show another button. That's it. Strangely, if I have for example multiple buttons I want to click to show another button, I can do that no problem. But for some reason just wanting one button to do the same thing is seemingly undoable.

Any help would be appreciated.

Most Valuable Participant
Correct answer by Lilybiri | Most Valuable Participant

Create a user variable v_counter with a default value of 0. You coudl also use the On Enter action of the slide to set its value to 0, which would be necessaery if you want the slide to be revisited. Hide the second button, Bt_2 in output. in the Properties panel or with the On Enter action.

Create an advanced action for the first button. Since I don't know which version you are using, I will not post a screenshot. But you'll need two decisions: the first one has to happen always and is a standard action

Increment v_counter by 1

The second decision is conditiional and cehcks the value of the variable:

  IF v_counter is eqqual or greater than 3

      Show Bt_

Views

104

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 04, 2018 0
Most Valuable Participant ,
Dec 04, 2018

Copy link to clipboard

Copied

Create a user variable v_counter with a default value of 0. You coudl also use the On Enter action of the slide to set its value to 0, which would be necessaery if you want the slide to be revisited. Hide the second button, Bt_2 in output. in the Properties panel or with the On Enter action.

Create an advanced action for the first button. Since I don't know which version you are using, I will not post a screenshot. But you'll need two decisions: the first one has to happen always and is a standard action

Increment v_counter by 1

The second decision is conditiional and cehcks the value of the variable:

  IF v_counter is eqqual or greater than 3

      Show Bt_

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 04, 2018 0
Community Beginner ,
Dec 04, 2018

Copy link to clipboard

Copied

You are a diamond. The only thing I changed was v_counter is equal to 3 and not equal or greater than because that was working after 4 clicks instead of 3. However works like a beaut you have saved me from any further headache.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 04, 2018 0
Most Valuable Participant ,
Dec 04, 2018

Copy link to clipboard

Copied

It should have worked with equal or greater as wel.... believe me! Pretty simple advanced action, but I have created so many and blogged so much about them.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 04, 2018 0
Community Beginner ,
Dec 04, 2018

Copy link to clipboard

Copied

Oh I do believe you I follow your posts all the time but for some reason it worked best with equal to not equal or greater than. I'm sure your method works fine and works fine for other people but just wasn't working for my project.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 04, 2018 0
Community Beginner ,
Dec 06, 2018

Copy link to clipboard

Copied

If I wanted to use this on multiple slides, do I need to keep renaming v_counter? As when I preview my project it doesn't working across multiple slides, it's only when I preview the slides individually it works. I'm on Captivate 10 by the way, any help would be awesome.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 06, 2018 0
Lilybiri LATEST
Most Valuable Participant ,
Dec 06, 2018

Copy link to clipboard

Copied

If you use the On Enter action of all slides to reset v_counter to 0, you can reuse the action. Only the button will have a different label, I suppose, unless it is a button that is timed for the rest of the project.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 06, 2018 0