Copy link to clipboard
Copied
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
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
...Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
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.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more