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

on load script not working

Explorer ,
Sep 21, 2023 Sep 21, 2023

Copy link to clipboard

Copied

Hi

I am running the latest version of captivate classic
I have a next button running "for rest of project"
When I try to hide it on certain slides using the hide script on "on enter" it do not work.
Tried disable script also. Same thing. Not working.

New bug or...?

Views

64

Translate

Translate

Report

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 ,
Sep 21, 2023 Sep 21, 2023

Copy link to clipboard

Copied

I keep to 11.5.553 for real projects because of the many bugs in 11.8.2.  However I have that Captivate Classic installed on another system and will try to double-check because if your claim is true, that is a very bad bug.

Can you explain in detail what you mean by 'hide script'? Is it a simple action, an advanced or shared action or a real JS script? Which name did you use for the button?

Votes

Translate

Translate

Report

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 ,
Sep 21, 2023 Sep 21, 2023

Copy link to clipboard

Copied

OK, I created a project for testing in version Captivate Classic (11.8.2). I added a shape button to the first slide, timed it for the rest of the project, always on top. I kept the generative name for the button which was Shape_1. I kept the default pausing point at 1.5secs.

On the second slide I used the simple action 'Hide Shape_1' and on the third slide 'Show Shape_1'.

When previewing in Browser (which is the same as Preview Project) everything worked as expected.

I wait for your answers on my questions to guess what could be wrong, because it is for sure not a bug in this version.

Votes

Translate

Translate

Report

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
Explorer ,
Sep 21, 2023 Sep 21, 2023

Copy link to clipboard

Copied

Thank you for testing it out.
Its an advanced action.
Same for the exit script. Not working.

I did a workaround. Could be this specific course that are filled with hundreds of scripts.

mysk83_0-1695288437802.png

 

Votes

Translate

Translate

Report

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 ,
Sep 21, 2023 Sep 21, 2023

Copy link to clipboard

Copied

LATEST

I am pretty sure this is due to too many advanced actions. As a consultant I have debugged a lot of projects, and Captivate can be bloated by too many advanced actions and variables. It is the reason I became the advocate for Shared actions and reusing variables.

Looking at this example of that advanced action some tips:

  • If you had a Visited Inbuilt state for b_2 you wouldn't need the Change state action since the Visited state automatically appears when button has been clicked.
  • What is reason for the two CloseMenu buttons? I would like to see them in the Timeline of the first slide.
  • You hide four items here, no possibility to use a group? Are they all timed for the rest of the project or not?

Votes

Translate

Translate

Report

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