I’ve had many people ask me, “How did you do that?! That’s amazing!” in regards to my Lectora development work. The most common answer I give, “Change contents.” The response I usually get is “What’s that?”. Let me explain.
What Does it Do?
There are so many uses for this action. The short version is this action allows you to change the content based on what action you apply to it.
Why Would You Use it?
One of the cases you would use the “Change Contents” action would be to fill or alter the contents of the feedback based on whether the question answered was correct or incorrect.
Change Contents is one of the many actions available to you from the action type drop-down in Lectora. You can use it on images, videos, GIFs, and even the contents of text boxes. Also, since it is an action type, it can be linked to a conditional and / or a variable.
How to Use the “Change Contents Action” in Lectora
1. Create an action and select a trigger.
2. Choose “Change Contents” as the action type.
3. Each Change Contents action for non-text boxes has a Target and a Resource:
a. Under Target, choose the course asset you wish to change.
b. Under Resource, choose the NEW graphic, text box, or asset you wish to change.
4. Each Change Contents action for text boxes has a Target, Value, and Text:
a. Under Target, choose the text box whose contents you wish to change.
b. Under Value:
i. Choose Set Text and type in the new text in the text area below, or
ii. Choose a variable from the Value drop-down list to replace the text box contents with the variable’s contents.
That is all there is to Change Contents! It is an incredibly powerful tool, even more so when paired with conditionals or when tied to variables.
When using the Change Contents action, make sure your replacement text or replacement image is the SAME SIZE AND PROPORTION as the original. Otherwise, the image will get distorted, and the text will get cut off.
Use the power of the change contents action teamed up with Lectora Templates. Click the button below to learn more.