Javascript Question

Jump to solution
mmoore1
Community Contributor

Is there a javascript that I can use that will return a user's full name.  I have been fairly successful using Javascripts on .html pages, but I need to return the user's name for a certificate after certain modular requirements are met. 

2 Solutions
kmeeusen
Community Champion

Hi  @mmoore1  

No executable scripting is permitted in Canvas pages or anywhere else with an RCE. This is done for security reasons..

I am sure others will provide you with a much longer and more detailed answer, but that is the bottom line.

Kelley

View solution in original post

MattHanes
Community Champion

It looks like Display Name is the only one available in the ENV variable

ENV.current_user.display_name

You would probably have to use the API to grab their Full Name. Assuming you're doing this in the Global Javascript file.

View solution in original post