Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Creating a simple Login Cp9

Explorer ,
Dec 12, 2016 Dec 12, 2016

I'm using Captivate 9.  I'm trying to create a simple login screen, the first screen of my course.  The slide uses a Hide Playbar action on enter, as I don't want the user to proceed until I have captured their name.

Since I'm using a certificate of completion at the end, I need the cpQuizInfoStudentName variable populated as the certificate assigns that variable to the User Name on the prebuilt certificate widget.

I first set the user variable cpQuizInfoStudentName to a value of 0.

I have created a Text Entry Box, and assigned the variable cpQuizInfoStudentName to it.  Infinte attempts checkbox is checked.

For the Text Entry box, I have created an advanced conditional action:

IF cpQuizInfoStudentName is not equal to 0

THEN Continue

ELSE Show a warning Text Caption I set up.

When I publish as SWF to my computer and run,

If I don't type anything I get the warning I made.  Subsequent attempts to enter a name don't do anything.

If I do type a name, I still get the warning.

Is there a scenario I should be using?  This kinda doesn't make sense to me.  Is there a value assigned to a Text Entry box when it loads?  What might that value be, so I can check for it.  I'm also confounded if I can make multiple attempts?

thanks

465
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Dec 12, 2016 Dec 12, 2016

Maybe the approach I explained in this very old (but still valid) article is what you need:

Where is Null? - Captivate blog

Do not assign 0 as default value, because for Captivate it has no meaning (except defining it as a number when CP has issues). The only way to check if a variable is empty, is by creating a dummy empty variable which I label v_null in that blog post.

Now, if you are on Captivate 9.0.2 there is a bug, to be fixed, with micronavigation. You'll read in that blog post that I rewi

...
Translate
Participant ,
Dec 12, 2016 Dec 12, 2016

While you could certainly get it working with an advanced action, your best bet is to just take the easy route : ) Select your text entry box object and then in the Properties panel you should see a Variable dropdown. Select cpQuizInfoStudentName in that dropdown and when the user types anything into that text entry box it will get assigned to that variable.

Mark

Moderator: sorry, that was not the question at all. User did assign the correct variable to the TEB but the conditional action is the problem

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 12, 2016 Dec 12, 2016

Huh "Moderator"? The user might have assigned the correct variable, but the approach they are taking doesn't make much sense given their stated goal: "Since I'm using a certificate of completion at the end, I need the cpQuizInfoStudentName variable populated as the certificate assigns that variable to the User Name on the prebuilt certificate widget."

I provided a quick and easy solution that works.

Moderator: ​He wants to check if the TEB is empty, look at the advanced conditional action. Assigning a variable to the TEB will not have that action result in a caption showing up when the TEB remains empty.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Dec 12, 2016 Dec 12, 2016

Maybe the approach I explained in this very old (but still valid) article is what you need:

Where is Null? - Captivate blog

Do not assign 0 as default value, because for Captivate it has no meaning (except defining it as a number when CP has issues). The only way to check if a variable is empty, is by creating a dummy empty variable which I label v_null in that blog post.

Now, if you are on Captivate 9.0.2 there is a bug, to be fixed, with micronavigation. You'll read in that blog post that I rewind the playbar after submitting an empty entry to the TEB, to allow the user another attempt. This is not working in the present version. I described the workaround  in my last blog post (Playing with Numbers - part 1 - Captivate blog ), here is it as well:

  • delete the Submit button of the TEB, and do not allow a shortcut key neither (there is a trash bin)
  • create a custom Submit button, and attach the conditional action to that button, you can also have a shortcut key for that custom button
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Dec 13, 2016 Dec 13, 2016
LATEST

Thanks Lilybiri,

I got it working great using your suggestions.  I'm not having any micronavigational issues - there is no need for me to "rewind" the playbar.

Thanks for all the suggestions.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources