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

Using multi-state objects for next step in Cap 9

New Here ,
Apr 28, 2016 Apr 28, 2016

In my old clunky eLearning authoring tool, I could create a slide with multiple steps. You would click the Next Step button to display text and graphic.  When you get to the last step, the Next Step button disappears, so you know you're done. How can I make this work with multi-state objects in Cap 9?  I created a multi-state object with 3 states. I created a button with an action of Go to Next State.  That's fine until you get to the last state.  If you click the button again, it starts over with the first state.

Yes, I can create multiple buttons. But I really just want to have one button called Next Step that disappears after you display the last state.  The user would know she had displayed all the steps.

Any suggestions are welcome.  Thanks. 

Jeanne M

450
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

correct answers 1 Correct answer

Community Expert , Apr 29, 2016 Apr 29, 2016

Here is a script example:

StopLoopStates.png

This was set up for 6 states (for a text container, the Normal state was an empty shape).

There are 2 user variables:

  • v_counter has a default value of 0
  • v_max is the number of states, you can replace it by the literal '6' or what you need

The first decision "Done" checks if the counter has reached the maximum value (v_max). If that is the case all states have been shown and it should end the loop. That is why that decision will disable the button used to change states (SB_St

...
Translate
Community Expert ,
Apr 28, 2016 Apr 28, 2016

Why not just hide the button after the last step?

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 ,
Apr 29, 2016 Apr 29, 2016

??? How would you do that, Rod? OP wants only to use the simple action 'Go to Next State' triggered by that button. Indeed, it will loop through the states, and once you reach the last state, it will restart from the first state.

It would be a nice feature to add, but don't know if it is possible. My 'cheating' is to add a blank state as last state, and hope that the user will not continue to click the button.

Other approach is of course not to use the simple action, but a conditional action. Since there is no looping possible, and the action 'Go to Next State' is not available in the Advanced Actions dialog box, it will be more complicated because you'll have to use a counter and a decision for each state. It is then possible to disable or hide the Next button within the last decision. I understand that this seems to be rather complicated for what is thought to be a simple looping.

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 ,
Apr 29, 2016 Apr 29, 2016

I know that's what he wants to do but I don't see the point of trying to use the Change State action when it seems much simpler to me to HIDE the entire button once you reach the last state.   

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 ,
Apr 29, 2016 Apr 29, 2016

Maybe I misunderstand the question totally.  I thought that he has set up different states with different Text+Graphic and uses the Go to Next State action triggered by a button, to loop through the states. How would you realize this without using Go to Next State?

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 ,
Apr 29, 2016 Apr 29, 2016

Lieve, I don't think you and I are on the same wavelength with this one.

He's quite OK to use the Go to Next State or Change State TO actions up until reaching the final step. But at that point his original post indicated with his previous tool he had the Next Step button DISAPPEAR and he wanted something similar to happen in Captivate.

In Captivate making things disappear is usually done with the HIDE action.  I'm just saying that trying to use the actions for changing states makes no sense when what he REALLY seems to want is for the button to disappear.

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 ,
Apr 29, 2016 Apr 29, 2016

Indeed, we do understand differently: which event would allow to hide that 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 ,
Apr 29, 2016 Apr 29, 2016

Which event was being used to Go to Next State?

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 ,
Apr 29, 2016 Apr 29, 2016

Success event of the 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 ,
Apr 29, 2016 Apr 29, 2016

OK.  So, if this even reaches the last step what's the problem with using that same event to execute more lines in the same Advanced Action to delays a few seconds and then hide the button itself?

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
New Here ,
Apr 29, 2016 Apr 29, 2016

Hi,

Thanks for the thoughtful responses to my question!

In answer to your question, the only "problem" is that I just learned how to use multi-state function in Cap 9. Haven't delved into Advanced Actions yet.  Sounds like that's the solution, so I will endeavor to learn. 

--JM

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 ,
Apr 29, 2016 Apr 29, 2016

OK.  I think I see where we are on a different path. The Go To Next State and Go to Previous State actions don't appear for Standard or Conditional Actions.

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 ,
Apr 29, 2016 Apr 29, 2016

That is what I wrote in my first answer and why I was stupefied with your

answer. Moreover, you don't have control over the delay time at all.

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
New Here ,
Apr 29, 2016 Apr 29, 2016

Just found some Lynda.com training on advanced actions, so I'll bite the bullet and learn how to write scripts.  Thanks.

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 ,
Apr 29, 2016 Apr 29, 2016

I could write out a shared or advanced action (can be part of the book about actions that I'm working on), since it happens often that someone doesn't want to loop through states, but just loop through the available states. Can be useful in a global script library.

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
New Here ,
Apr 29, 2016 Apr 29, 2016

Sounds great!

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 ,
Apr 29, 2016 Apr 29, 2016

Here is a script example:

StopLoopStates.png

This was set up for 6 states (for a text container, the Normal state was an empty shape).

There are 2 user variables:

  • v_counter has a default value of 0
  • v_max is the number of states, you can replace it by the literal '6' or what you need

The first decision "Done" checks if the counter has reached the maximum value (v_max). If that is the case all states have been shown and it should end the loop. That is why that decision will disable the button used to change states (SB_StateTrigger) and here also change its state to an invisible state (AfterLoop). When returning to the slide, the state will again be Normal (visible), and you only have to enable the button again. You can replace this by a single Hide action as well if you want.

If the first decision is not true, there are still states to be shown and the counter is incremented.

The other 6 decisions are all similar (I collapsed 2 of them): they will test the value of the counter and show the associated state. From state3 on I used a combinated criterion. That makes it possible to use exactly the same advanced action also if the total number of states is lower than 6. You only have to change the value of v_max.

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
New Here ,
May 02, 2016 May 02, 2016
LATEST

Thanks a bunch! I will give this a try and report back.

--JM

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