August 19, 2019
Forced navigation for playback controls in captivate
Comments
(12)
August 19, 2019
Forced navigation for playback controls in captivate
Newbie 1 posts
Followers: 0 people
(12)

Hello, I’m using Captivate 9 and would like to create a forced navigation using playback controls. Can I use an action when user clicks the next button from playback control (not a custom next button), the slides jumps to a specific slide instead of next slide? I appreciate any advice.

Thanks,

Maryam

12 Comments
2019-08-20 18:04:27
2019-08-20 18:04:27

Lieve,

What commands I should use for Play and TOC custom buttons? I’ve used toggle cpCmndTOCVisibe for TOC, and toggle cpCmndMute for play buttons, but they’re not working. I appreciate your support.

Like
(1)
(3)
>
MaryamS
's comment
2019-08-20 18:31:28
2019-08-20 18:31:28
>
MaryamS
's comment

Have a look at this blog post, where I explain how to use a shared action for 5 toggle buttons, including the Audio On/Off and TOC On/Off. The TOC system variable will only work for TOC in Overlay. The blog is 4 years old, hence the embedded video is still SWF output. But the explanation is valid. I have a HTML5  version in this portal, but cannot find it. Some of my blogs have disappeared from my list, don’t know how many.

1 action = 5 toggle buttons

Like
(2)
>
Lieve Weymeis
's comment
2019-08-21 13:40:26
2019-08-21 13:40:26
>
Lieve Weymeis
's comment

Thank you, this is very helpful.  I was able to run the SWF output.

Regards,
Maryam

Like
(1)
>
MaryamS
's comment
2019-08-21 13:42:54
2019-08-21 13:42:54
>
MaryamS
's comment

Are you still publishing to SWF? Do you have control over the browsers installed by the learners?

Like
(1)
2019-08-20 14:23:48
2019-08-20 14:23:48

Thanks, Lieve.

Like
(1)
(1)
>
MaryamS
's comment
2019-08-20 16:49:39
2019-08-20 16:49:39
>
MaryamS
's comment

You’re welcome, sorry that my answer is not really helping you.

Like
(2)
2019-08-20 09:45:27
2019-08-20 09:45:27

Hi Maryam,

Actually this is possible, but it require a bit of messing around with the JavaScript, and you would need to publish in HTML5 only.

Basically if you add the Execute Javacript action to your slide entrance, and change the number (in this case 2) to the desired slide number -1 (i.e. in this example you would be directed to slide 3), you can reassign the destination of the Forward button on the playbar:

document.getElementById(‘Forward’).onclick = function() {window.cpCmndGotoSlide = 2};

Like
(2)
(4)
>
thomasc65388365
's comment
2019-08-21 07:40:17
2019-08-21 07:40:17
>
thomasc65388365
's comment

Thanks for that solution. Hope it is as simple as that, because once you start editing that playbar, you’ll bump on more than just that one button. What with the back button, the FF button etc…

Like
(1)
>
thomasc65388365
's comment
2019-08-21 13:44:53
2019-08-21 13:44:53
>
thomasc65388365
's comment

Thank you! I’ll try this code and test it out. Can I use a two-line code and add the back button as well?

Like
(1)
>
MaryamS
's comment
2019-08-22 13:59:17
2019-08-22 13:59:17
>
MaryamS
's comment

Absolutely, the best thing to do is edit the playbar as required using the Captivate Player menu, then any buttons that you want to re-purpose you can just add a new line of JS for each.

Using the ‘Back’ button will be fine, but it’s best to open a new blank project in HTML5 preview and use the browser inspector tool  and console to find the correct ID’s for each button.

I find it’s much easier to test any JS this way before adding it into the actual project, as Lieve mentioned, you can end up diving down the rabbit hole otherwise, at least this gives you a way to test your scripts without affecting the project.

Like
(2)
>
thomasc65388365
's comment
2019-08-22 16:25:37
2019-08-22 16:25:37
>
thomasc65388365
's comment

I may be prejudiced because I never use the default playbar since I never create a pure linear project. The progress bar for a non-linear project is confusing, doesn’t add useful information for the learner. Hence my preference for custom navigation buttons. Agree that it is possible with JS.

Like
(1)
2019-08-20 07:24:58
2019-08-20 07:24:58

No, that is not possible. You cannot edit the actions in the default playbar. You need to create custom navigation. Since shape buttons can be used on master sides or timed for the rest of the project that is not such a big work.

Like
(1)
Add Comment