cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer II

Render student name from a html page

Hi Canvas Team, 

I know canvas is capable of rendering the name and other variables of the student using some pre-created variables. Where i can found those variables? 

The main goal here is creating a page sending a HI, <studentName>!! and so on. 

Regards,
Alexandre S.

3 Replies
Highlighted
Community Coach
Community Coach

Hi alexandre.schneider@centrouniversitariofam.com

Canvas does not make use of tokens, and most any executable code included in page content via the UI, is promptly stripped out. You can find the allowed HTML elements for Canvas at Canvas Whitelist

Kelley

Highlighted

Hi Kelley, 

Thanks for your answer. Nice to know all the possibilities when working with html on canvas. I used a javascript that find for a expression that i created and replace it for the student full name using ENV.current_user.display_name and managed to do what i wanted. 

Regards,
Alexandre S.

Highlighted
Community Coach
Community Coach

alexandre.schneider@centrouniversitariofam.com,

Were you able to find an answer to your question? I am going to go ahead and mark this question as answered because there hasn't been any more activity in a while so I assume that you have the information that you need. If you still have a question about this or if you have information that you would like to share with the community, by all means, please do come back and leave a comment.  Also, if this question has been answered by one of the previous replies, please feel free to mark that answer as correct.

 

Robbie

0 Kudos
Top Kudoed Authors
Labels