Highlighted

Can I assign the text of text caption in Captive using a variable?

Community Beginner ,
Jun 22, 2019

Copy link to clipboard

Copied

I have a text caption named feedback_correct and I would like to change the text of that caption depending on what question I am on.

CBP user

Views

109

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Can I assign the text of text caption in Captive using a variable?

Community Beginner ,
Jun 22, 2019

Copy link to clipboard

Copied

I have a text caption named feedback_correct and I would like to change the text of that caption depending on what question I am on.

CBP user

Views

110

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Adobe Community Professional ,
Jun 22, 2019

Copy link to clipboard

Copied

You sure can. In your properties inspector you have an icon that looks like this...

2019-06-22_19-03-25.png

This will allow you to select any system or user variable and have it populate within the text caption or smart shape.

Consider this though, I like to create a multistate object on my custom question slides called feedback or something similar. It contains a Normal state where there is no text and the object itself is completely transparent. When a learner answers a question my actions for the question set the feedback state to the appropraite version of itself. For example, if they get it correct it might read...

2019-06-22_19-07-51.png

however if they get it wrong it would change to the state for incorrect messages like this one...

2019-06-22_19-08-51.png

I even have a state for when they try to answer the question without making a selection first...

2019-06-22_19-09-36.png

I know it's not exactly what you are looking for but it might be a better solution to what you are looking for.

Paul Wilson, CTDP | https://captivateteacher.com

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
New Here ,
Jun 22, 2019

Copy link to clipboard

Copied

Great! I'm so glad I asked!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Lilybiri LATEST
Most Valuable Participant ,
Jun 23, 2019

Copy link to clipboard

Copied

Maybe I understand this question totally wrong? Are you indeed talking about quiz slides? And do you want to save time by using variables (which is the primary goal in my head)? Why do you create a custom feedback text container instead of using the built-in feedback messages? An urgent question is also: do you want to do this in a  fluid boxes project or another type of project? Do you want to use this in question pools or not?

Do not understand me wrongly,: I am a big fan of multistate objects!  Most people ignore that you can insert a variable in the default feedback messages, which are shapes in the default setup, not captions.  That avoids having the edit those message to make them specific for each question slides (in or out of a pool). The only problem is how to populate the variable with a text. I would use a shared action On Enter for each quiz slide.  If you want to populate both the Correct and Failure message you'll have two parameters in that shared action, the text for both.  Alternative is JS if you are flluent with programming.

Advantage of this workflow is the easy maintenance: shared actions are in the Library, and have a Usage button like each asset in the Library. Easy to navigate to each instance, for possible editing. Setting up a multistate object or each quiz slide will take up a lot more time. It is up to you, dependibg on the situation. Since you are using default messages, you don't have to bother about the actions to show the appropriate message, since it is built in the quiz slide functionality.

Disadvantage: of the variable method: the number of characters you can have in a variable is limited to about 150 (used to be 256 but changed in more recent versions).  How to display a character is show by Paul, but I didn't see the editing of the variable value when displayed. Have a look at:

Discover/Use Captivate's System variables - Part 1 - Captivate blog

Blog has more details about displaying variables.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...