Found this content helpful? Log in or sign up to leave a like!

Change only display name

JodyBurzinski
Community Member

I see in an archived post that some users were able to add code to only allow students to change thier Display Name (not ALL names).

Here is the post:

We were able to allow our students to change their Display Name without allowing them to change their full name or sortable name by adding the following two lines to the universal javascript code in the theme editor:


document.getElementById('user_sortable_name').readOnly = true;
document.getElementById('user_name').readOnly = true;

 

These two lines gray out the full name and sortable name options.  To enable them to edit the Display Name field, you still have to set the option to allow students to edit their names in the Admin Settings.

 

Could anyone send me the instructions for actually adding this code. I don't really work with Javascript, so I am having trouble getting it to work.

Thanks.

Labels (1)
0 Likes