Copy link to clipboard
Copied
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.
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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):
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
yay it worked....thank you so much for your help. Excellent knowledge