Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Click button 3 times to show another button

Community Beginner ,
Dec 04, 2018 Dec 04, 2018

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.

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

correct answers 1 Correct answer

Community Expert , Dec 04, 2018 Dec 04, 2018

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 standar

...
Translate
Community Expert ,
Dec 04, 2018 Dec 04, 2018

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_

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2018 Dec 04, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 04, 2018 Dec 04, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2018 Dec 04, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 06, 2018 Dec 06, 2018

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 06, 2018 Dec 06, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources