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

How to have a button appear only after all buttons are clicked

New Here ,
Nov 22, 2019 Nov 22, 2019

Hello,

 

I am a beginner at Captivate and I am using Captivate 2019. 

 

I am trying to understand advanced actions, and I'm starting to get them but they're not doing anything that I want.

 

Currently, I have 5 buttons on a page (with 4 different states). I want a Quiz button to appear once all 5 buttons have been clicked.

 

I followed a couple of Paul Wilson videos however, they don't take into consideration that my buttons have states (normal, hovered and visited are the most important ones).

 

I know it's an advanced action, but is there a video or anything that breaks it down for a beginner (with a brain that doesn't understand coding very much) or can someone here help me on how to have a button appear ONLY when all buttons have been clicked and visited, without changing the states of the buttons?

 

Thank you

TOPICS
Advanced , Advanced actions
1.1K
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
Engaged ,
Nov 23, 2019 Nov 23, 2019

...

Hello and welcome to Captivate !...

This is a way of doing this :

1./ Name your 5 butons as Bt_1, Bt_2, Bt_3, Bt_4 and Bt_5 and your Quiz buton as Qz_Bt

(And hide your Qz_bt when entering the slide)

2./ Create 5 variables

v_Bt_1

v_Bt_2

v_Bt_3

v_Bt_4

v_Bt_5

And give them the default value of 0

3./ When you click on one of your buton, change the value of the variable (in an advanced action linked with each butons) :

Assign v_Bt_1 with 1 (When you click on Bt_1)

Assign v_Bt_2 with 1 (When you click on Bt_2)

Assign v_Bt_3 with 1 (When you click on Bt_3)

Assign v_Bt_4 with 1 (When you click on Bt_4)

Assign v_Bt_5 with 1 (When you click on Bt_5)

 

With this, you can track if your 5 butons habe been clicked or not !...

 

4./ Add another action (a contioned one this time) on all the advanced actions attached to the 5 butons (All the conditions are true):

If v_Bt_1 is equal to 1

If v_Bt_2 is equal to 1

If v_Bt_3 is equal to 1

If v_Bt_4 is equal to 1

If v_Bt_5 is equal to 1

 

Then

Show Qz_Bt

...

And this could do what you want !...

And if you want this to work if you play your project many times, you have to add another action when you enter the slide :

Assign v_Bt_1 with 0

Assign v_Bt_2 with 0

Assign v_Bt_3 with 0

Assign v_Bt_4 with 0

Assign v_Bt_5 with 0

Hide Qz_Bt

...

Hope this is clear and could help you ?

And you can of course give other names to all of your butons !...

Happy Captivating !...

😉

...

 

 

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
LEGEND ,
Nov 23, 2019 Nov 23, 2019

Have also multiple use cases on my blog, as Ludovic explained.  With screenshots. You need indeed two decisions in the advanced action.  Maybe this blog post, explaining all functionality of the Advanced Actions dialog box (new version since CP2017) can help as well:

http://blog.lilybiri.com/advanced-actions-dialog-box-in-captivate-2017

 

However I see that you have a state problem as well. Can you explain more in detail what you want? Rollover, Down and Visited states are InBuilt states, which do happen in a specific situation. Do you want to keep the Visited state once the button has been clicked? In that case you need to check this option:

RetainState.PNG

Another sit

 

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
Engaged ,
Nov 23, 2019 Nov 23, 2019
LATEST

...

Hello Lieve !...

I was just on your blog, looking for another solution as I know there must be a solution in your blogs !...

But I see you are there !... As usual !...

Happy Weekend !...

😉

...

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