cancel
Showing results for 
Search instead for 
Did you mean: 
sbarry2
Community Participant

Course Drop Button

One of the on-going problems we face is the Drop button on Catalog. We aren't notified that someone has dropped the course when clicking this button.

Has anybody been successful in disabling this button?

Is there a way to add some functionality i.e. send notification to instructor that student has dropped?

Tags (2)
20 Replies
davi
Community Participant

I've also found that the CSS code you supplied did not work in Canvas. Here's what worked for me:

/* hide Drop Course button for self-enrolled students */
#right-side a.btn.button-sidebar-wide.self_unenrollment_link { display:none; }

davi
Community Participant

Finally, here's the CSS code to hide the Drop Course button in Catalog that worked for me:

/* Hide the "Drop Course" button that appears for students who have self-enrolled. */

.Dropdown__Toggle--cog {display:none;}

jsowalsk
Community Advocate
Community Advocate

Thank you so much, David. Just I am wondering why would you not want students to unenroll/drop in Catalog?

jsowalsk
Community Advocate
Community Advocate

I wonder why it didn't work. It has worked for other customers. That is the code for Canvas not Catalog.

davi
Community Participant

I really don't know why it didn't work in Canvas. I tried it in multiple browsers. The CSS that worked for me is above. As with everything in CSS, it's all about specificity.

davi
Community Participant

We are just beginning to use Catalog for continuing education offerings. Our new director of PCE has established a "no refunds" policy, so she doesn't want to permit participants to unenroll through Catalog or Canvas.

jsowalsk
Community Advocate
Community Advocate

Gotcha. Thank you for the explanation. 

greg_lawrence
Community Participant

Hi all

Just to follow on from what Jennifer's comments. I tweaked her code and came up with

// disables drop course function for students
for(x=0;x<ENV.current_user_roles.length;x++){
if(ENV.current_user_roles[x]=='student'){
$('.self_unenrollment_link').remove();
}
}

It worked!

Also came up with this code to turn off the drop function in Catalog by turning off the 'actions' cog icon

//disables drop course via actions icon in Catalog
setInterval(function () {
$('[id*="actions-course"]').remove();
}, 10);

Cheers

Greg

jsowalsk
Community Advocate
Community Advocate

This looks great!

Where does one enter that code in Canvas admin?

// disables drop course function for students
for(x=0;x<ENV.current_user_roles.length;x++){
if(ENV.current_user_roles[x]=='student'){
$('.self_unenrollment_link').remove();
}
}

Tags (1)