AnsweredAssumed Answered

Hiding "Remove from Course" option

Question asked by shane.ohara@unh.edu on Oct 25, 2016
Latest reply on Nov 3, 2016 by shane.ohara@unh.edu

Hello everyone,

We have run into a situation with running enrollments via API where Teachers have the ability to remove a student from a course in the People area. When enrollments are run using SIS, Teachers do not have the ability as the "Remove from Course" option is hidden from view. Here's an example of what a Teacher currently sees because of our API enrollment method:

 

Screen Shot 2016-10-25 at 9.01.16 AM.png

 

What we would like to do (other than disabling the permission for "Add/Remove students for the course" because there is a need for manually adding/removing) is to use Javascript to hide "Remove from Course". However, this is proving tricky as the ID value for it is different per user. Right now, I can use (as an example).....

 

$("a#ui-id-9.ui-corner-all").hide();

 

...to hide "Remove from Course" on a per user basis. The value "ui-id-X" is assigned by the system, so I am not sure how I would write it to grab all the IDs and hide when the caret is clicked. Any thoughts for this rookie?

 

Thanks!

Shane

Outcomes