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

'On Enter' not executing conditional action - captivate 8

Participant ,
Oct 01, 2015 Oct 01, 2015

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.

variable working.jpg

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.

adv a.jpg

prop.jpg

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.

timeline1.jpg

TOPICS
Advanced
1.3K
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 ,
Oct 01, 2015 Oct 01, 2015

Try adding Enable after Show for the button and Disable before Hide for the

other button.

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
Participant ,
Oct 01, 2015 Oct 01, 2015

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.

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 ,
Oct 01, 2015 Oct 01, 2015

Sorry, on my phone I have no access to Captivate. Try adding Continue. I

suspect the buttons are in same location?

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
Participant ,
Oct 01, 2015 Oct 01, 2015

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.

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 ,
Oct 01, 2015 Oct 01, 2015

It should work, I have blogged about that scenario. Look for "Toggle

buttons" on http://blog.lilybiri.com.

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
Participant ,
Oct 01, 2015 Oct 01, 2015

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

Untitled.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 ,
Oct 01, 2015 Oct 01, 2015

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.

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 ,
Oct 01, 2015 Oct 01, 2015

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

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 ,
Oct 01, 2015 Oct 01, 2015

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.

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
Participant ,
Oct 02, 2015 Oct 02, 2015

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.

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
Participant ,
Oct 02, 2015 Oct 02, 2015

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.

two.jpg

I then created a second slide with a shape as a button and assigned the following advanced actions

four.jpg

When playing the project it turns out like this, notice how the variable is showing as '1'.

one.jpg

I then set up the following conditional action

to 'show' the blue box

three.jpg

And changed the 'on enter' to this...

five.jpg

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'.

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
Participant ,
Oct 02, 2015 Oct 02, 2015
LATEST

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!

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