Copy link to clipboard
Copied
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)
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
...Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Good luck!
Copy link to clipboard
Copied
Many thanks worked a treat and meant I could lock down the navigation on the page to. Thanks again
Copy link to clipboard
Copied
You're welcome
Copy link to clipboard
Copied
Can anyone offer a visual in captivate of how this should look. New user... very little experience with advanced actions & Variables
Copy link to clipboard
Copied
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).