Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
In this lesson we'll see how we can add some password protection to our Captivate project. We're going to use the Chapter 14 store file that's located in your Project folder in your Chapter 14 folder in your Exercise Files folder. Please open that now. In order to provide password protection we need to build a slide that forces the user to enter a value. We're going to validate that value against a known password. If the user enters the right password, then they'll be able to see the rest of the presentation. If the user enters the incorrect password, then he will bypass the presentation altogether and go right to the end.
Let's see how we do that now. Right-click on the Home slide and choose Insert > New Slide. Click-and-drag Slide 2 before Slide 1 to reorder the slides. We'll call slide number one Password. In the Properties panel click on Label and type in Password. Hit Enter to commit. Go down to the bottom of the presentation. After Slide 5 we'll insert one more slide.
Right-click on Slide 5. Choose Insert > New Slide. We'll call this slide Sorry. On this slide we'll enter a text caption. Please type W"e're sorry. You need to enter the correct password to view the presentation." You can stylize that later if you wish. Let's go back to slide number one. On slide number one we need to insert a text entry box. This text entry box is the place where we enter our password.
In order to compare the entry to a password we need to enable validation. In our Properties panel, scroll to the top. You'll see Validate User Input has already been checked. If you've changed your defaults you may not see Validate User Input. You need to turn that on now. Let's enter a password. Click on the plus sign on correct entries and enter our password. We'll make it very simple. We'll call it Password. You'll probably want to make something a little more challenging than that.
If you would like it to be case- sensitive, you can enable Case-Sensitive here. Now I have my correct entry and let's look at some of the other features. Captivate has built captions for me. I don't need a success caption. I'd like to keep my failure caption and my hint caption. Select the text entry box again. Scroll down in the Properties panel and we'll turn off the success caption. Next we'll expand the size of the text entry box by dragging the drag handle on the center left to the left.
Click somewhere in this open space to deselect it. For the failure caption type "Please enter a correct password." For the hint caption, type "Enter a password." Select all of these elements and we'll drag them to the right a little bit. Now we need a text caption on the top that says "Please enter a password." Hit the Escape to cancel editing and we'll move it up above the password field.
The last thing that we need to do is to control what happens when the user enters a password. This we do in the action area of the text entry box. Select the text entry box now. You'll see the action area here. On success, we will Continue. If I allow infinite attempts, then the user will be able to try passwords forever. I'd like to limit the attempts to 3. Shut off Infinite and change the number of Attempts to 3. On the last attempt I'd like to go directly to the end of the presentation.
Choose Jump to slide and select 6 Sorry from the list. We've just built some simple password security into our project. Unfortunately, the user will be able to bypass the security if they have access to the playbar. We need to adjust the skin to remove some parts of the playbar. Under Project choose Skin Editor. We'll allow the Rewind and Play, but we don't want Forward, Back, or Fast Forward.
The play bar now does not enable the user to be able to navigate the presentation on their own. They've got to enter the password in order to pass this slide and enter the rest of the presentation. Having made this change, let's close the Skin Editor. Now we'll preview the project. I need to enter a password in order to continue. I'll try a known bad password. That is incorrect.
That is also incorrect. I know the correct response is Password. I'm going to enter an incorrect response so that you can see what happens after the third attempt. I haven't entered the correct password, so I'm immediately taken to the end of the presentation. The combination of simple password protection and the adjustments that I made to the skin make it possible to protect my content and my presentation. Let's close the preview and save the project.
We'll call it Chapter 14 store_a. Since this is a password field you may choose to tell Captivate that this field is indeed a password field. If you do that then any text that gets entered in the field will be masked in the characters. While this isn't exactly bank level security, it does at least provide you with some basic means of protecting your content. Remember you need the text entry box with validation and a means of bypassing the rest of the presentation, which means a destination slide at the end.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 74456 Viewers
80 Video lessons · 129690 Viewers
52 Video lessons · 63925 Viewers
59 Video lessons · 49717 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.