Skip to main content
Participant
December 22, 2010
Question

Conditionally display a button

  • December 22, 2010
  • 3 replies
  • 1033 views

Hi.

I am able to make a button invisible and then become visible later by using an advanced action; however, when I jump to another project and return to the original project the button becomes invisible again. I presume because the project is re-initialised.

Essentially, if the user jumps to the other project and returns I want the button to be visible as this signifies they have completed that unit of study.

Is there any way to get a button to remain visible after jumping to another project?

Thanks.

This topic has been closed for replies.

3 replies

Known Participant
December 30, 2010

So basically you need to pass a value to the newly re-launched Captivate lesson, that the button should be visible? I would try creating a small widget that would set a cookie, and check for it on start.

Lilybiri
Legend
December 29, 2010

Hello,

Could you give some details about how you made the button visible: p.e. how was the advanced action triggered? And when you come back to the project, is that again from the start of the project? I played quite a lot with advanced actions, if you could explain more in detail want to try out your workflow.

Lilybiri

Participant
January 1, 2011

Hello Lilybiri (and others).

When a button to call another project was pressed I ran an advanced action that set another button to visible and then called the other project. I then saw the other button display briefly before the other project was run. Unfortunately on return from the other project the second button status returned to my default invisible and was therefore not available.

As for widgets and javascript, that is beyond me at present; however, I appreciate the suggestions.

Thank you all.

Gerard

Lilybiri
Legend
January 2, 2011

Hello Gerard,

Happy New Year!

I just tested your workflow, and couldn't repro your issue. The second button, initially invisible set to visible by the advanced action launched on clicking the first button remained visible when I returned to the first project. You see the action in the screenshot, be sure to have the Show action executed before the Open Project, sequence of statements is important in Advanced actions. I opened the second project in a New Window (not visible in the screenshot because of the long pathname. This was the result I expected, because the first project was not closed, so I did not see why the status of the second button should have changed on returning, at least if you have the statements in the same sequence. To show an object, the action must be on the same slide as the object, but I think that was also the case for you, not?

Lilybiri

zreichenbachcarr
Inspiring
December 29, 2010

If you know javascript you can do this. You would just fire a javascript function when leaving the one project and coming back to your menu or other project that would then show the button. It would be much easier if you are able, to build an html page as your menu/launching point for all your individual pieces and launch and carry variable in that with javascript.

Good luck.