Copy link to clipboard
Copied
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!
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Hi Gustavo,
This is what Lieve means:
Copy link to clipboard
Copied
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):
Each action, whether simple, advanced or shared has to be triggered by an ‘event’. There are different types of events:
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:
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.