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

Doubt regarding conditional action - Captivate 9

Explorer ,
Sep 11, 2015 Sep 11, 2015

Hello community, I've been working with Cp for a while but I'm not confident when the subject is variables and such.

Please take a look at this case:

I have a slide with 4 boxes, the user click each one of them to see a pop up with image and audio (all on the same slide), then he clicks

a X to close it (hide it) Also, when he clicks the X he's automatically giving a conditional action called 'completion_status' a value 1 .

Back to the slide, the box he clicked is marked with and OK, meaning he passed that content and should click the other boxes.

I then created a conditional action stating that when all four completion_status are signed with the value 1, another popup will happen,

this time with an congrats audio and a button to move to the next slide. My doubt is: How should I trigger that last conditional action?

I tought atributing to every X closing button, but it's not possible to put and advanced action inside another, right?

Maybe this is a dumb and easy thing, so please don't mind my rookieness

Thanks!

760
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 ,
Sep 11, 2015 Sep 11, 2015

With CP9 there are several ways to do this. Apparently you didn't look at the 'states' at all like I did with lightboxes in this movie:

Playing with Captivate 9 - Captivate blog

In the second part, when the text bubbles have appeared that are also shape buttons, each shape button will open a lightbox and a close button.

For your conditional action, you'll need to use the success event of the close button, since that is the moment where you want to check if all variables have been toggled to 1. I would use a shared action, conditional, something like this:

First decision 'Always'

  IF 1 is equal to 1

        Assign v_one with 1                  v_one is the variables assocated with this button (you call it a 'box')

        Hide .....                                    the group with objects and audio that you want to close


Second decision "CheckDone"

       IF v_one is equal to 1 AND

           v_two is equal to 1 AND

           v_three is equal to 1 AND

           v_four is equal to 1

              Show..........................          whatever you want to show when everything has been visited.

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
Explorer ,
Sep 15, 2015 Sep 15, 2015

Sorry Lilybiri, I didnt quite understand your instructions... English is not my native language

IF 1 is equal to 1

        Assign v_one with 1                  v_one is the variables assocated with this button (you call it a 'box')

        Hide .....                                    the group with objects and audio that you want to close

What do you mean by:IF 1 is equal to 1?

I have 4 buttons, button_1 sets completion_status_1 to 1, button_2 sets completion_status_2 to 1 and so on...

I then created a conditional action like this:

If all the completion status are 1, show(mostrar) those 2 objects.

lili.PNG

The thing is when I click all buttons and all completion status are 1, nothing happens. How can trigger it?

sorry for my difficulty to understand

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 ,
Sep 15, 2015 Sep 15, 2015

Hi there

Perhaps you have a conditional action where you want something performed each time without being conditional. Maybe it's a second or third decision block.

So block 1 might say if this variable = 1 to this. Else, to the other thing.

But as part of the same condition, you want some action performed regardless. Maybe you need a counter set to keep track of the number of times the action was performed. In that case, you need to set up a situation where only one part of the condition would ever be reached and the else part would never be reached.

That's where If 1=1 comes in handy. It will always evaluate as true. It will never evaluate as false.

Hope this helps... Rick

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
Explorer ,
Sep 15, 2015 Sep 15, 2015

I think I understand what you are saying, but I don't know how to execute it. Could you guys take a look at the example project?

Microsoft OneDrive - Access files anywhere. Create docs with free Office Online.

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 ,
Sep 16, 2015 Sep 16, 2015

Hi Gustavo,

This is what Lieve means:

Gustavo.jpg

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 ,
Sep 16, 2015 Sep 16, 2015
LATEST

I cannot write this in your language, sorry.

Basic introduction to advanced actions (in my training) includes this (excerpt of my ebook - draft about Advanced/Shared actions):

Events

Each action, whether simple, advanced or shared has to be triggered by an ‘event’. There are different types of events:

  • Slide events: each normal slide has an On Enter and On Exit event. Careful with the last event, because it only occurs if the last frame of the slide is visited and its effect is visible on the next slide.
    Question slides have only an On Enter event.
  • Object events: interactive objects mostly have a Success and a Last Attempt event. The Rollover Slidelet, normally not an interactive object, has a Rollover and a Click event.
  • Question slide events: Question slides also have a Success and a Last Attempt event.
  • Score slide event: the Continue button triggers the actions Success/Failure specified in the Quiz Settings
  • Drag&Drop events: besides the same Success/Failure event as question slides, each drag movement is also a trigger for Object Actions
  • Interactive learning interactions: most of those interactions are Static and so have no events. With the exception of the WordSearch, all other games are Interactive, so they have a Success/Failure event.
  • Hyperlinks: have a click event.

In your use case you use 'object events': when clicking on a button you attach the advanced action to the Success event of that button. Since you remain on the slide all the time, you cannot use a slide event at all. That means that the Success event for the Close button has to trigger two types of action, in this sequence:

  1. To change the value of the variable to 1 AND hide the info group    which is normally a standard action
  2. To check the value of all the variables and show the extra info if all have been set to 1          which is normally a conditional action

Rick and someone else explained why I used 'IF 1 is equal to 1' for the first decision, to mimick that standard action in that decision, because those commands will always be done. It could also be 'IF Gustavo is equal to Gustavo'  if you don't like numbers.

I tried to give you a possibility without changing your initial idea, but it would be much easier if you changed the work flow and spread the commands over the 'boxes', I suppose you mean click box or a shape button, which are individual and ONE Close button. If you want me to write that one out, no problem, but I don't want to give you an indigestion. Anyway I would certainly use shared actions for the click boxes (or shape buttons) and a conditional action (as you use now) for the Close button. Since you'll have only one Close button, everything that has to be hidden will have to be mentioned in that conditional action. It would spare you a lot of clicking if you could group everything that has to be hidden for all four click boxes.

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