Copy link to clipboard
Copied
Hi
I have a simple advanced action where if a variable is equal to '1' a button should show and another be hidden.
I've added a text box with the variable in to test that on entering the slide from the correct part of the file it is equal to '1' which you can see in the image below.
But for some reason the conditional action doesn't seem to be triggering when entering the slide.
'Tabletcontinue' is the the image in the screen shot that is always showing.
'backtometer' is the button that is hidden on output that should show when the variable is equal to 1.
However it's not. I've tried adding in a section in the 'else' tab which is a reverse of what's in the 'actions' tab.
I also tried a test and changed the conditional action to simply hide the 'tabletcontinue' button if the variable was equal to '1'.
But it didn't make any difference as it seemed on entering the slide the conditional action just wasn't triggering.
Any ideas on what's stopping it from working? Below is an image of the timeline to help.
Copy link to clipboard
Copied
Try adding Enable after Show for the button and Disable before Hide for the
other button.
Copy link to clipboard
Copied
I've just tried that.
I deleted the variable and the existing conditional action and started again.
So I had if 'view meter is equal to 1'
Disable 'tabletcontinue'
Hide 'tabletcontiue'
Show 'backtometer'
Enable 'backtometer'
It's still not working, it's really strange.
I might try rebuilding the slide and see if that works.
Copy link to clipboard
Copied
Sorry, on my phone I have no access to Captivate. Try adding Continue. I
suspect the buttons are in same location?
Copy link to clipboard
Copied
No worries, I appreciate the help.
I've got a simple work around with just duplicating the slide and having each button on separate slides.
But it's bugging me that it's not working.
I'll try adding a continue and yes you're right they're on top of one another, but I've had them positioned next to one another while I was testing it to see if I could get it to work.
Copy link to clipboard
Copied
It should work, I have blogged about that scenario. Look for "Toggle
buttons" on http://blog.lilybiri.com.
Copy link to clipboard
Copied
I've added the continue button as below and still it's not working.
It's not a toggle button as in you once and and click again to switch between states.
It's two separate shapes converted to buttons.
On viewing the slide the first time one button will be showing and the other hidden.
Then when you go back to the slide the original button will be hidden and the previously hidden one will be showing.
Thanks
Copy link to clipboard
Copied
The issue here might be that your variable is not being assigned to the value required for the actions to be executed. You need to be able to SEE what the variable's current value is before you will know whether the issue is in your Conditional Action or not.
Try inserting your conditional variable into a caption on the slide where the Conditional Action is executing On Slide Enter. Does it show as being the value required? If not, trace back to where this value should have been changed. That might be where the real issue lies.
Copy link to clipboard
Copied
Was I wrong but did the OP not state in the question that he tracked the
variable in a text caption and that it was populated correctly?
I pointed to the blog post because I also proposed a scenario with two
shape buttons to simulate a toggle button
Copy link to clipboard
Copied
Ah yes. You are correct. Didn't spot that point mentioned right at the top of the entire thread.
I mentioned this because I find it to be the most common reason why Conditional Actions seem to play up.
It's looking more and more like there might be some corruption in this project. Might be worth trying to copy the problem slide out to a blank project and see if you can rebuild the functionality there to get it to work.
Copy link to clipboard
Copied
Thanks RodWard , I'm going to create a blank project and try the same thing. I think you might be right as when I initially created it I'm sure it was working. Also another conditional action I had stopped working but I managed to have a play with that one and get a work around going.
Lilybiri‌ I understand now, I'll have a look at your blog over the weekend.
Copy link to clipboard
Copied
Ok so I've set up a blank project
with two boxes a red box that always shows and a hidden from output blue box.
I created a variable called 'test' and put it in a text caption as below.
I then created a second slide with a shape as a button and assigned the following advanced actions
When playing the project it turns out like this, notice how the variable is showing as '1'.
I then set up the following conditional action
to 'show' the blue box
And changed the 'on enter' to this...
And it's still not working on a blank project.
I've tried to keep it really simple with shapes as opposed to making the red and blue shapes 'buttons'.
Copy link to clipboard
Copied
I realised why it wasn't working
'Jump to slide' was before 'assign test'
I just moved them so assign comes first then jump to slide and it works!
Finally!