Skip to main content
Gray Susan
Inspiring
November 7, 2018
Answered

More than one value in a variable

  • November 7, 2018
  • 2 replies
  • 352 views

I was looking over an older Adobe Captivate Help and Tutorials.  There is an example on scripting.  The example is to create a log in screen with user name and password then have the second screen provide a welcome with the user name.  In this example, the value for the UserName variable is User and the value for the Password variable is Password.  Is there a way to set this up if you'd like captivate to look at a list of user names and passwords that were acceptable in those fields?

This topic has been closed for replies.
Correct answer Lilybiri

That old example is there since over10 years, gave up the hope they'll finally put in a new one.

Do you want to mimick what happens normally in a LMS: to check the credentails of an acoount? You can have as many values in variables as you want. You will need JS and arrays to make this possible. However I find a LMS a much easier way. What would have to happen when either the username or the corresponding password are not valid?

2 replies

Lilybiri
LilybiriCorrect answer
Legend
November 7, 2018

That old example is there since over10 years, gave up the hope they'll finally put in a new one.

Do you want to mimick what happens normally in a LMS: to check the credentails of an acoount? You can have as many values in variables as you want. You will need JS and arrays to make this possible. However I find a LMS a much easier way. What would have to happen when either the username or the corresponding password are not valid?

TLCMediaDesign
Inspiring
November 7, 2018

You can check the validate user input on the properties of the TEB and enter all of the valid values.

You can check to see if the values are valid several ways depending on how you want it to work.