June 19, 2019
Advanced Action – Shared Action
Comments
(12)
June 19, 2019
Advanced Action – Shared Action
Newbie 3 posts
Followers: 0 people
(12)

I have a button that will show/hide (toggle) a text caption, but I could have up to one on each slide that has different words.

On each slide, the text caption has a number after it. I’m not sure how to write the advanced action where it is reusable and knows what text caption it is?

I’m using Captivate 2017.

If I was using Animate I would have a var textName = textCaption + currentSlide; (using concatenation to create an object name).  I’m not sure how to accomplish this. Any help is appreciated.

12 Comments
2019-06-21 08:20:46
2019-06-21 08:20:46

I posted an alternative solution as well, with a variable in the text container. That would allow you to use the same toggle button (which needs to be a shape button) timed for the rest of the project and the text container as well. Only the value of the variable (=text) would be needed as parameter in the On Enter shared action. May be the easiest solution.

You are using a variable, is this variable reused on each slide? In that case, do you use the On Enter action to reset that Boolean variable to 0? Apparently the look of the toggle button is not changing when the text is visible, since I don’t see a reference to button states. BTW, you could read my blog about the Advanced Actions dialog box, because the Preview button is an easier way to show a full action, even with multiple decisions, instead of many screenshots.

I will post a link to a blog post explaining a toggle button with one shared action. But I have to search for that post in the portal, although I have it also on my personal blog (considered not friendly if I point to my blog).

Like
(1)
2019-06-20 17:08:49
2019-06-20 17:08:49

I’m wondering where this button is located that an advanced action would be required?

Like
(1)
(6)
>
Venderley
's comment
2019-06-20 17:42:06
2019-06-20 17:42:06
>
Venderley
's comment

The button is on the timeline on every slide. We have 35 to 100 slides per lesson. We have a text caption that I want to show and hide, each slide will have different words in that text caption from slide to slide. So I’m trying to write code that will find the text caption that slide. example name of the text caption on slide 2 text_2 (text_currentSlide number) , slide 3 text_3. 

Like
>
jamesp81001848
's comment
2019-06-20 17:51:48
2019-06-20 17:51:48
>
jamesp81001848
's comment

Is this a button that you’ve placed on an initial slide, and then programmed to display for the rest of the module?

Here’s my point:

If it’s on the slide, then there’s really no need for advanced actions.  BUT, you would have to have a unique button on each slide.  That’s not that big a deal. It won’t significantly impact course size, and you can ensure that it’s in the same position using the X/Y coordinates in button properties.

Doing this, each button on each slide will get its own basic action to reveal the text.

This may seem like some extra steps, but I’m not sure that it would be any more or less extra steps than setting up and managing a shared action.

Like
>
Venderley
's comment
2019-06-20 20:17:06
2019-06-20 20:17:06
>
Venderley
's comment

I have the same button (actually buttons) on one slide with the rest of the project selected. This button currently toggles a text box on and off (show/hide), I have a conditional that checks the state it is in. Although when I duplicate the slide the text box will be re-named (text_number of the current slide) and different content will be in it. I’m trying to use the advanced action panel to write it smartly to know which box to hide.

Maybe I should consider writing some javascript

Like
>
jamesp81001848
's comment
2019-06-20 21:33:44
2019-06-20 21:33:44
>
jamesp81001848
's comment

You seem to ignore my question. An alternative to a shared action (which could save a lot on file size as well) would be to fill the caption timed for the rest of the project with a variable, and use a shared action to change the value of that variagle On ENter for each slide.

Like
>
Lieve Weymeis
's comment
2019-06-25 17:41:05
2019-06-25 17:41:05
>
Lieve Weymeis
's comment

“An alternative to a shared action (which could save a lot on file size as well) would be to fill the caption timed for the rest of the project with a variable, and use a shared action to change the value of that variagle On ENter for each slide.”

 

If we’re committed to using the same button through the rest of the project, this probably would have been the route I took.

Like
>
Venderley
's comment
2019-06-25 17:44:59
2019-06-25 17:44:59
>
Venderley
's comment

Even with individual buttons, this could save on file size, because you can apply the same advanced action to all the buttons.

Like
2019-06-20 07:28:25
2019-06-20 07:28:25

I would use a shared action. Can you please provide a screenshot of the present advanced action you are using?

Like
(1)
(2)
>
Lieve Weymeis
's comment
2019-06-20 21:45:47
2019-06-20 21:45:47
>
Lieve Weymeis
's comment

here they are sorry it took a while. My Government Computer did not let me log into this site

Attachment

Like
>
Lieve Weymeis
's comment
2019-06-20 21:52:25
2019-06-20 21:52:25
>
Lieve Weymeis
's comment

here is the else

Attachment

Like
Add Comment