Skip to main content
Dexter2012
Known Participant
January 9, 2023
Answered

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

  • January 9, 2023
  • 1 reply
  • 375 views

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. 

 

 

    This topic has been closed for replies.
    Correct answer Lilybiri

    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.

    1 reply

    Lilybiri
    Legend
    January 9, 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
             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

    Lilybiri
    LilybiriCorrect answer
    Legend
    January 9, 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.