Skip to main content
Participant
October 8, 2012
Question

How do I make my next button (click box) dependent on other actions?

  • October 8, 2012
  • 2 replies
  • 1260 views

I have 5 click boxes on one slide, where each reveal certain text.  I want all to be clicked before my manually created next button (an image + click box going to next slide) appears.

I want to create a condition saying click boxes 1 - 5 must all be clicked before the next button appears.  How can I do this?  Thanks.

    This topic has been closed for replies.

    2 replies

    October 9, 2012

    Hello,

    Along the with Lilybiri really helpful videos - I found the following Adobe Recording to be extremely useful for the type of situation you are talking about:

    http://www.adobe.com/cfusion/event/index.cfm?event=set_registered&id=2087329&loc=en_us

    It is called 'Advanced Actions for Dummies' and was a webinar that was held on the 13th of September.  The link attached goes directly to the Adobe Connect recording of the webinar.

    Hope this is useful as well

    Ali

    Participant
    October 17, 2012

    Okay so here's where I'm at:

    I have 5 objects on the screen, each with it's own click box that triggers an advanced action that will show a corresponding text box, hide the text boxes for all other images, and assign the variable for each to 1.  (I have created 5 variables set to 0 - the advanced interaction will assign a corresponding variable to 1).

    I have one conditional action that says when all 5 variables equal 1, the next button image + click box should be shown.

    I have assigned the conditional action to the slide but for some reason the next button image and click box are not appearing.

    Is it okay to assign the variable to 1 in each of the advanced actions and just have the one conditional action?

    Anyone have any ideas on what I'm doing wrong?

    Lilybiri
    Legend
    October 18, 2012

    Hi Mel,

    I think the problem is that the conditional action, assigned to a slide event (On Enter?) will not be executed, because you are not 're-entering' the slide as is the case for my menu template. Your events are on the slide if I understand well: the clicks on the 5 click boxes. So you'll have to combine the conditional action with the standard action and assign it to each click box. Long time ago I wrote a tutorial about combining standard with conditional action:

    http://kb2.adobe.com/community/publishing/862/cpsid_86254.html

    In short the work flow:

    1. You already created 5 user variables, I will label them here v_one, v_two, v_three, v_four, v_five
    2. For each click box create a conditional advanced action, will label them CB_one, CB_two, CB_three, CB_four, CB_five
    3. Example CB_one, has two decisions (where you see Untitled at the top, those are decisions), beware sequence is important! Contrary to Lectora the action will always be totally evaluated, not stop when a True is found:
      1. First decision 'Always' (I'm a labeling freak) will do what you now have in the actions for the click boxes:; it has to be a mimicked standard action thus:
        IF 1 is equal to 1
        1. Assign v_one with 1
        2. Show ...
        3. Hide...
          No need for an ELSE part, since this will always be done.

      2. Second decision 'CheckVars' is a real conditional action, which is what you now have assigned to the slide event:
        IF v_one is equal to 1  AND
            v_two is equal to 1   AND....
        1. Show Image
        2. Show Next button...

                        No real need for ELSE again

    Hope this will now solve your issue?

    Lieve

    RodWard
    Community Expert
    Community Expert
    October 8, 2012

    You're going to run into some issues trying to do this with click boxes because by default as soon as you click one of them it releases the timeline pause and the project will continue to play.  There is a work around for this that involves some fancy Advanced Actions to rewind the playhead slightly so that you jump back before the pause point again, but I actually prefer to do this sort of thing another way.

    I use Event Handler widgets to register the clicks on some other object such as a caption or highlight box or image.  I can set the widget preferences to Disable Continue and Reset Success Fail Criteria After Action.  This allows my users to click away on the objects forever if they want without releasing the playhead. Best of all it only takes seconds to set this up. Doing something similar with Advanced Actions requires you to build extra clauses into other actions you need, and then sometimes you run into issues with the clickboxes not resetting their success/fail criteria unless you re-enter the slide.

    Whichever way you go, you're going to need to first Hide the navigation button on the slide (set its Visibility to unchecked) and set up some user variables (one for each object where you want the user click to be tracked) with initial values set to 0. 

    You also need five Conditional Advanced Actions (one for each object) that have two sections.  The first part assigns the relevant user variable to 1 when its object gets clicked, and then it moves to the second part which looks for a condition where all of these tracking variables are set to 1, and if it find this, then it Unhides the button that allows the user to jump to the next slide.

    Set each interactive object (widget or click box) to execute their relevant conditional advanced action when clicked.

    That should do it for you.

    Participant
    October 8, 2012

    Thanks.  I'm only using the exit and print buttons (no next button) from the navigation bar as the task on each slide actually sends the participant to the correct slide upon task completion.

    I have an advanced action set for click boxes 1 - 5 (showing the texted related to the image under each click box and hiding all unnessary text).

    The part I need explained (if you don't mind) is the actual steps for setting the clicks to 0 and what I do to create the 5 conditional advanced actions (as I have never used Captivate conditions before) that equal 1.

    Thanks in advance.

    RodWard
    Community Expert
    Community Expert
    October 8, 2012

    The best resource on the net about Advanced Actions and Conditional Advanced Actions is this blog:

    http://lilybiri.posterous.com/tag/advancedactions

    Take a look at the screenshots and tutorials there.  Lieve does a great job of explaining the process and demonstrating it.