Centering variables in a text box

Hopefully someone will give you an easy way to do this. If not, try this for an HTML only solution.Create an HTML object - place where you want it and set the width and height in the code below. The Lectora width and height are ignored. Just copy and paste this code into the Custom HTML box.

Code:

When you get ready to display the certificate, run an action like this sets any variable except the one that contains the UserName to:

Code:

javascript: y=CertificateName(VarUserName.getValue())

Replace the UserName with your variable name.luck,ben

Discussions have been disabled for this post