Showing results for 
Show  only  | Search instead for 
Did you mean: 
Community Participant

Themes: Custom JavaScript Help Needed

We run a Canvas theme with Java Script that gives instructors a link to a Google Sheet when they are on the Settings>Course Details page. On January 5, 2019 Canvas released "Course Dates and Functionality Clarification". Since this update the link is not there.
Canvas Support pointed me to the following pages but they weren't helpful:
How do I insert text as a hyperlink to a Google Sheet on a Canvas page using custom JavaScript? 
3 Replies
Community Coach
Community Coach

Hey there  @tamara_becker  Thank You for posting your question.  I wanted to let you know that I shared your question with the Canvas Developers‌ group here in the Community in hopes that your question will get some additional exposure.  If you are not following this group, please use the link that I provided, and then click on the "Follow" button at the top right corner of the screen.  Also, go ahead and click on the "Actions" button (also located at the top right corner of the page) and then click on "Join group".  I hope this helps!

Community Participant

New Java Script code was created by our CIS Instructor to solve this issue. Thank You MARTI!
This was the old code:
$("td.course_enrollment_term_id").innerHTML("To adjust the term dates for this course, <a href="+formURL+" target='_blank'>complete the request form</a>.");
This is the new code:
document.getElementById("course_enrollment_term_id").innerHTML = document.getElementById("course_enrollment_term_id").innerHTML + '<br />If you want start and end dates different than the normal term please  <a href="' + formURL + '">complete the Term Date Change form request.</a>';
Community Coach
Community Coach

 @tamara_becker ,

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.