Copy link to clipboard
Copied
In Captivate 2019 I am looking to use advanced actions to change the state of a text box and reveal the next button. I'm unsure how to write the variables and link them to the button to make that happen.
The exact scenario is that I have a multiple-choice question and I want the correct answer to
a)display text confirming that it is the correct answer and
b) show the next button at the same time.
Thank you for your time and for sharing your knowledge with me.
Copy link to clipboard
Copied
Some clarification is needed: are you talking about a custom MCQ slide? It would be completely different if this is a standard MCQ slide.
You talk about a 'text box', I suppose you mean either a caption or a shape used as text container, not a Text Entry Box? How many states does that text box have and what is the normal state? Do you use that text container as button or do you have an extra button?
The advanced action can be very simple, and you probably do not need a variable at all, but I need really to know what you mean exactly. Maybe post some screenshots of the wanted setup?
The easiest way if you have a button, is to include a Visited state and add the wanted text to that state. Or a custom state. Have a look at this blog post:
https://blog.lilybiri.com/button-states-basics-and-tips
Copy link to clipboard
Copied
@Lilybiri It is a custom MCQ slide on a responsive project (which always makes things more complicated). I included a picture below. The 4 options are on the right and the caption or "text box" has 5 states (normal, answers A, B, C, and D) D is the correct answer.
From what I've tried I cannot use the visited state option because it is a responsive project and it will not let me put the added text into the caption box area.
The ask is to have the "next" button on the right appear, along with a change in the state of the caption.
Thank you for the link to the button states. I love your blog it's helped me a lot.
Copy link to clipboard
Copied
Indeed, Fluid Boxes make this a lot more complicated.
Thanks for the screenshot. But were is what you call the 'text box', which is a shape? In which Fluid Box did you put it? Is it the one having 'Please select an answer' in the Normal state?
As for the Next button: how did you set up the fluid box at the bottom, where you have that Next button? Personally I would create the button but have the Normal state being 'invisible' to the learner, and disabled using the On Enter action of the slide. Delete its Rollover and Down states, and add a Custom state where the button is visible. Is that what you planned? If you hide that button, the layout of the fluid box may deteriorate.
I suppose the answers are used as buttons, correct? Probably the correct answer has a score attached.
If all my guesses are correct, I would create a shared action to be used for each of the answer buttons:
Change State of TextBox to A two parameters, where A is the name of the state
Enable SB_Next
Go to Next State SB_Next
If you do not enable 'Retain state when revisiting slide', the Next button will return to its Normal state when re-entering the slide. For the On Enter action of the slide you need only 'Disable SB_Next'.
It has three parameters, indicated in Bold. Only one of the parameters will be different for each answer.
If you have only one or very little slides needing this action you could use duplicate Advanced actions, but I recommend using a Shared action if you need it more. That has also the advantage of being easily transferred to other projects.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now