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

Advanced actions and variables to turn on a next button

Community Beginner ,
Jul 26, 2016 Jul 26, 2016

Working in Captivate 9) I have set up 10 smart shapes as button as you click each one it displays information (which is a text caption or scrolling text widget hidden in the properties).  I want to display a next button after the student has clicked and viewed each piece of information. I created a set of 10 user variables and assigned them all a value of 0. Then set up an advanced action for each button which showed and hid the information I wanted to display for each button. (simple stuff) I also added an increment action to each which incremented the appropriate variable by 1. Then set up a conditional action which ran on page entry which contained  all conditions true, then each of the variables 1-10 equal to or greater than 1, show next button , which was on the page but hidden in the properties. It all seems straight forward I can get it to work if I set up a test with a couple of buttons on a page etc. But in my project the button doesn't display. Any suggestions.

I have set an on exit advanced action on the previous page to hide the play bar and lock the TOC so students cannot navigate away until they have viewed all the information. Ideally I would like to set this action up on the page with the buttons but as I wish to run the display next button Action I cannot (Again any suggestions)

TOPICS
Advanced
1.2K
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 , Jul 26, 2016 Jul 26, 2016

The On Enter action will not be executed, that is your misunderstanding. You need a conditional advanced action for each shape button. It is not possible to use a shared action because of double use of variables. Do not increment the user variable, but assign 1 is also a better solution, makes the condition less complicated. I have posted this solution multiple times on this forum, but here is another try:

Conditional action SB_OneAct  needs two decisions:

First decision 'Always' is a mimicked st

...
Translate
Community Expert ,
Jul 26, 2016 Jul 26, 2016

The On Enter action will not be executed, that is your misunderstanding. You need a conditional advanced action for each shape button. It is not possible to use a shared action because of double use of variables. Do not increment the user variable, but assign 1 is also a better solution, makes the condition less complicated. I have posted this solution multiple times on this forum, but here is another try:

Conditional action SB_OneAct  needs two decisions:

First decision 'Always' is a mimicked standard action:

IF 1 is equal to 1              always true so all commands will always be done

   Assign v_one with 1     where v_one is the Boolean user variable associated with first shape button

   Hide Gr_Info                   where Gr_Info is the group with all the information boxes/widgets for all buttons

   Show Info _one             Info_one is the information for this button

Second decision 'CheckVars'

IF v_one is equal to 1   AND

     v_two is equal to 1 AND....

     v_ten is equal to 1

Show Bt_Next

Enable Bt_Next              only necessary for HTML output and shape 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 Beginner ,
Jul 26, 2016 Jul 26, 2016

Thanks so much. I will get set this up now. I have created a individual advanced action for each button which was why I was surprised that it wouldn't work I have used this coding when I have set up a similar interaction that actually jumps to separate pages that give the appearance of staying on the same page and it works fine. I didn't think it through using a number of items all on the same page (which is a neater way of doing things) I needed to show and hide I was getting really frustrated (my use of actions and variables is a bit rudimentary at best so every new bit of knowledge helps). I'll come back to the forum if I have a problem. Many thanks again.

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 ,
Jul 26, 2016 Jul 26, 2016

Good luck!

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 Beginner ,
Jul 27, 2016 Jul 27, 2016

Many thanks worked a treat and meant I could lock down the navigation on the page to. Thanks again

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 ,
Jul 27, 2016 Jul 27, 2016

You're welcome

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 ,
Feb 13, 2018 Feb 13, 2018

Can anyone offer a visual in captivate of how this should look. New user... very little experience with advanced actions & Variables

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 ,
Feb 13, 2018 Feb 13, 2018
LATEST

I did write out the full actions, what do you want more? If you are using CP2017, maybe this blog post can help to understand the new Advanced Actions dialog box:

Advanced Actions Dialog box in Captivate 2017 - Captivate blog

The biggest difference is for the first decision. Do not turn on the 'Conditional' option, just type in the commands

For the second decision you need to check the option 'Conditional' and keep IF (which is the default choice).

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