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

How to make next button appear when out of 6 buttons only 4 buttons are clicked.

Community Beginner ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

Hello, 

I am new to captivate and I need help in writing Advanced action for the below scenario.

Explanation:

a) My project has a scenario, where on the main slide there are 6 buttons with 6 popups on the main slide. And all 6 popups have 6 close buttons (X). Out of the 6 buttons, any 4 buttons should be clicked and the next button should appear. 

 

 

Views

233

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
community guidelines

correct answers 2 Correct answers

Community Expert , Jan 09, 2023 Jan 09, 2023

I use a shared action for all comparable situations with a menu slide. 

Summary:

  1.  Create a user variable for each of the buttons, will label them v_1, v_2.....v_6. Start value =0
  2. Add another user variable v_clicks, also with start value = 0. It will be used as counter.
  3.  Add the Next button and hide it in Output, either using the Properties panel or with the On Enter action.
  4. Create this shared action, to be triggered by the buttons:
        Decision 1 'Always'  non-conditional
           Increment v_1
       
...

Votes

Translate

Translate
Community Expert , Jan 09, 2023 Jan 09, 2023

FYI: I have tons of blog posts about Advanced actions. You are probably also new to Shared actions, and may have a look at my crash course:

https://blog.lilybiri.com/who-is-afraid-of-dot-dot-dot-shared-actions-crash-course-introduction

This blog is followed by two lessons coming in two 'tastes': as step-by-step or as video.

Votes

Translate

Translate
Community Expert ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

I use a shared action for all comparable situations with a menu slide. 

Summary:

  1.  Create a user variable for each of the buttons, will label them v_1, v_2.....v_6. Start value =0
  2. Add another user variable v_clicks, also with start value = 0. It will be used as counter.
  3.  Add the Next button and hide it in Output, either using the Properties panel or with the On Enter action.
  4. Create this shared action, to be triggered by the buttons:
        Decision 1 'Always'  non-conditional
           Increment v_1
           Jump to chapter 1
        Decision 2 'Counting'   conditional
            IF v_1 is equal to 1
                 Increment v_clicks
          Decision 3 'ShowNext'
            IF v_clicks is equal to 4
                 Show Bt_Next

The items marked bold and italic are the parameters: variable v_x, slide Chapter1, button Bt_Next. Eventually you can also mark the literal 4 as parameter if you want to use the action in future projects where the number of buttons to be clicked can be different.

 

If you use the On Enter action to hide the Next button, you could move the third decision to that On Enter action:

IF v_clicks is equal to 4

   Show Bt_Next

  ELSE

    Hide Bt_Next

Votes

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
community guidelines
Community Expert ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

FYI: I have tons of blog posts about Advanced actions. You are probably also new to Shared actions, and may have a look at my crash course:

https://blog.lilybiri.com/who-is-afraid-of-dot-dot-dot-shared-actions-crash-course-introduction

This blog is followed by two lessons coming in two 'tastes': as step-by-step or as video.

Votes

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
community guidelines
Community Beginner ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

Thank you Madam for your time! It is working fine on my end.

Votes

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
community guidelines
Community Expert ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

LATEST

Whow, that was quick! You're welcome. Both Advanced and Shared actions are great tools, have used them since over a decade. 

Votes

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
community guidelines
Resources
Help resources