Join Pooja Jaisingh for an in-depth discussion in this video Decision-based branching, part of Captivate 8 Advanced Techniques.
- In this chapter, we will learn how to create custom navigation screens and objects. Let's start with creating a decision-based branching course, where the course branches out based on learner inputs or selection. We are in the decision start project. You can open it from the exercise files folder and the chapter five folder. Let's go to the second slide. On this slide, I've added two radio button learning interactions.
These interactions will help the learners make a choice of their current role and department. Based on their inputs, we will branch out the course for them to provide them relevant learning experience. In this example, I've considered just two roles and two departments, but you can add as many as you want, and use the same conditional action we'll be creating now. I've also included some custom slides for each of these combinations.
There can be four different combinations here: individual contributor engineer, individual contributor support staff, engineering manager, and support group manager. As you can see, for each of these combinations, there are these slides. In a real life project, you can have a bunch of slides. Also, the continue button on these screens will take the learners to the thank you slide so that they don't accidentally land on any other slide.
Here's the thank you slide. I've also disabled the play bar and table of contents to restrict the learners from navigating to the slides that are not meant for them. Now, to enable branching for the course, let's first take a look at the radio button interactions on the second screen. Let's scroll up and go to the second slide. Here, double click the learning interaction to open the widget properties. Notice the variable name here is role and the values are individual contributor and manager.
Go ahead and open a notepad or a word file and copy this text over there so that, when we are creating the advanced actions, we are not making any typing mistakes. I've done that for both the learning interactions, where I've written the name of the variables and their respective values. Let's close the widget properties. I just go ahead and click cancel. And now we need to create these variables. So we'll go to project and variables.
I'll go ahead and click add new, I'll go to the notepad, and copy the text role, and place it in the name section. You will leave the value field blank because we will be setting the value in the advanced actions. I'll go ahead and click save, and now, click add new again. I'll go back to the notepad and select department, copy it, and paste it in the name field.
I'll go ahead and click save, and now, I will close the variables dialog. Now for this continue button, we need to execute a conditional action. For that, I will select the continue button, go to the actions tab under properties inspector, and for on success action, I will go ahead and select execute advanced action. Now, I'll go ahead and click the browse button, and that will open the advanced action dialogue for me.
I'll go ahead and change the action type to conditional action. Now let's write the condition here. So I'll just name this as decision, and let's name the first decision as ICE, which is for individual contributor engineers. Here in the first line, I'll just go ahead and double click and select the variable. In the variable drop down, I'll go ahead and select role. Here, I'll go ahead and select is equal to, and I will select literal value.
Now, under role, the first literal value is individual contributor. I'll go ahead and copy that, come back to Captivate, and paste the value over here. So the first condition is, if the role is equal to individual contributor, and the next value we want is for the department, and it has to be engineer. So I'll go ahead and double click on the second line, select variable, select department, here, for the comparison operator, I will go ahead and select is equal to, and then I will go ahead and select a literal value, and the value will be engineering.
Go ahead and paste it over here. And then, the action would be to jump to that respective slide. So I'll go ahead and double click, select jump to slide, and here, I will go ahead and select the third slide, which is ICE. My first decision is ready. Let me go ahead and do the same for the next decision. So just to save some time, we'll go ahead and duplicate this decision. I'll go ahead and click the duplicate decision button, and here, I will change the name to ICS, S standing for support group.
And we'll let the first line remain the same. We'll go ahead and change the department from engineering to support. For that, I'll go ahead and select support, and I'll paste it here as a literal value. Then we need to change the jump to slide slide, and I will go ahead and select the fourth slide, which is ICS. Now, let's go ahead and duplicate it one more time. So I'll duplicate this, and this time, this one has to be manager support, so let's name this as MS.
And this time, we'll have to change the role from individual contributor to manager. So I'll go ahead and copy the text from there. I'll select literal value, and paste the value. Second line remains the same, because this has to be manager support. And here, for jump to slide, I'll go ahead and select the sixth slide, which is MS. Now, one last time, we will duplicate this and name this as ME, for manager engineering.
Now it's time to replace support here with engineering. I'll go ahead and copy the text. And here, I'll go ahead and double click support, select literal, and paste engineering. And for jump to slide, I will go ahead and select the fifth slide, which is ME. With that, my action is ready. I can go ahead and verify if the action is correct by clicking the preview action. Here, in this dialog, I can verify if my script is correctly written.
It looks all right, so I'll go ahead and click the close button here. I will click save as action, click okay, and close the dialog. Now, under the actions tab, I will go ahead and make sure the script is running. Let's go ahead and preview this and see if it's working fine. I'll go ahead and click preview, project. Here, if I don't make a selection and click continue, nothing will happen. It will not move forward till you make that selection.
So I'll go ahead and select individual contributor, and I will select support for this particular option, and click continue. Notice that the slide that I see now is for individual contributor support group. When I click continue, it takes me to the thank you page. This can be a great way to create content for different departments in your organization.
- Introducing actions, events, and variables
- Creating advanced actions
- Working with lightboxes
- Creating custom navigation
- Controlling audio through screens
- Building custom themes
- Inserting smart shapes
- Making elearning projects responsive
- Creating advanced quizzes
- Converting text to speech
- Being more productive in Captivate