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

Widget certificate not showing the UserName variable

Community Beginner ,
Dec 14, 2017 Dec 14, 2017

Hello all,

I have inserted an entry box for people to type in their name and attached it to the UserName variable. I am hoping this name will automatically appear in the widget certificate since its attached to the variable. Bear in mind that the variable in the widget is showing up as User Name with a space while the variable I created does not have a space simply because I cannot have a space in variable names. Should I make this new variable equal to zero or leave it blank?

Could the user name on the widget all show up when published? Any help is appreciated. I have made sure that the name variable is turned on in the widget.

 

Any help is appreciated

Thanks.

305
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

Community Expert , Dec 15, 2017 Dec 15, 2017

You can use a shortcut key (Enter?) instead of the Submit button. Normally the certificate interaction uses the content of that variable. I am busy finishing a workbook about using variables, looks like that would have been useful for you.

Translate
Community Expert ,
Dec 14, 2017 Dec 14, 2017

Are you talking about the variable cpQuizInfoUserName? That ivariable is retrieved from the login account to the LMS, if the LMS allows it. It is indeed the variable used in the certificate interaction?  You'll have to test it with the LMS.

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
Community Beginner ,
Dec 15, 2017 Dec 15, 2017

Hi Lilybiri. Unfortunately we do not have an LMS but I was told I could still make it work by having the user name automatically appear on the certificate.

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
Community Expert ,
Dec 15, 2017 Dec 15, 2017

Yes, but in that case, since the name cannot be retrieved from the LMS, you have to ask the name from the learner. Did you link that TEB with the user variable cpQuizInfoUserName? Did you create a conditional action to check that the user did really type in something in that TEB, that it was not left blank?

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
Community Beginner ,
Dec 15, 2017 Dec 15, 2017

Yes I did ask the user for their name. I am not sure though how to link it and to make sure that user typed in something. I did create a variable called UserName and linked it to the entry box. What else? Thank you.

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
Community Expert ,
Dec 15, 2017 Dec 15, 2017

You have to link the existing variable cpQuizInfoUserName!

That is the variable used in the certificate.

As for testing the entry, have a look at this old blog post:

Where is Null? - Captivate blog

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
Community Beginner ,
Dec 15, 2017 Dec 15, 2017

I couldn't find this variable with this title? Should I create one with the same exact name including the ! exclamation mark at the end? I just created one called UserName but I am guessing the certificate widget is not recognizing it.

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
Community Expert ,
Dec 15, 2017 Dec 15, 2017

Exclamation mark is not included. Are you on a very old version of CP? The variable is normally automatically created in any new project since version 7 (if my memory is correct, can also be 6):

variables.png

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
Community Beginner ,
Dec 15, 2017 Dec 15, 2017

I am using 2017. I found it, I was looking under system variables and not user variables sorry .

Alright so I linked by text entry box to this variable. Do I get rid of the submit box that appears with the text entry field? How will the system know if any information was entered into the entry box? On the certificate widget end, do I need to do anything?

Thank you

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
Community Expert ,
Dec 15, 2017 Dec 15, 2017

You can use a shortcut key (Enter?) instead of the Submit button. Normally the certificate interaction uses the content of that variable. I am busy finishing a workbook about using variables, looks like that would have been useful for you.

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
Community Beginner ,
Dec 15, 2017 Dec 15, 2017
LATEST

yay it worked....thank you so much for your help. Excellent knowledge

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