Last updated 4/22/2010
When the user enters incorrect information, a text caption is displayed asking the user to reenter information.
Create variables for the project
Select Project > Variables.
1
Create a variable named
2
varUserName
variable" on page 146.
Create a variable named
3
varPassword
Create objects for the slides
In an open project, insert two text entry boxes for the user name and password. The text entry boxes must be set to
1
act as form fields.
Note: To set a text entry box to act as a form field, select it and then deselect Validate User Input in the Properties
Inspector.
Delete the Submit button from the User Name field.
2
Set the following options for user name:
3
•
In Actions, go to On Success, and select No Action.
•
Deselect Infinite Attempts.
Note: This option is disabled automatically when you disable Validate User Input.
•
In the Action area of the Property Inspector, select Continue in the Last Attempt field.
•
Associate the field with the variable varUserName in the Var Associated field (General area of the Property
Inspector).
4
Double-click the text entry field for the password, and set the following options:
•
In the On Success field, select Continue.
•
Deselect Infinite Attempts.
•
In the After Last Attempt menu, select Continue.
•
In Variable Associated, select
Insert a text caption and do the following:
5
•
Enter the following text on the caption: Invalid username/password. Please try again.
•
In Item Name, change the name of the caption to
the caption until the conditions in the script enable the caption.
6
Insert a blank slide.
7
Insert a text caption with the text Welcome and the variable
.
$$varUserName$$
8
Save the project as variables.cp.
Create an advanced action for the login slide
The advanced action for the login slide must do the following:
•
Check whether the correct information has been entered in the login and password fields.
DRAFT
, with the value
. For more information, see
user
with the value
password
.
varPassword
FailureCaption
varUserName
USING ADOBE CAPTIVATE 5
Variables and Advanced Actions
"Create a user-defined
.
. Deselect the Visible option. Doing so hides
in the format
Welcome
151