Hi all,
I was attempting to change the Hint Text that appears when you click +People in the People section. I got this far, but I was unsuccessful:
document.getElementsByID('#user_list_textarea').placeholder='new text for email';
Any suggestions?
I would recommend that you write it as a function in your custom JS...you just have to update the "var instructionText" and "var placeholderText" to what you want it to display in the pop-up window. This is what we've had in production for over 18 months now:
function _nextButton(e) {
//alert("click happens - comment that out now");
var src = e.target || e.srcElement;
// if there is a click on something and it's the addUsers button and the title of popup is "Add People" THEN DO THE FOLLOWING
if (src && src.id == "addUsers" && src.getAttribute("title") == "Add People") {
e.preventDefault();
var instructionText = "Type or paste a comma separated list of valid usernames (i.e. abc123) or ID # (i.e. 999999999) below:";
var placeholderText = "Example: 999999991, 999999992, abc123, johndoe, janedoe";
$('#create-users-step-1 p:first').html(instructionText);
$('#create-users-step-1 textarea:first').attr('placeholder', placeholderText);
}
// general listener that checks every click and when one is
// detected performs the "_nextButton" function listed above.
document.addEventListener('click', _nextButton);
(code courtesy of mnieckoski at Keene State)
Shane
It is entirely possible that I stole this from someone but here is the code that I use. If anyone knows where I got it from please add an attribution lol.
//this code will change the placeholder and the aria-label text in the textarea used to provide instructions on how to add users
$('#user_list_textarea').attr( "placeholder", "Insert new placeholder text here" );
});
I'm building a tool for my institution that imports grades from another LTI tool into Canvas so instructors can automate late assignment policies not otherwise supported by Canvas. I'm trying to use the LTIv1.3 ID which is readily available on the LTI-side as a link to the student record on Canvas, but I can't find the ID…
How can one track Canvas Media use without having the reports available from Canvas Studio? Checking API endpoints and the Data 2 schema, there do not seem to be dedicated Canvas Media endpoints. Am I missing some? A method I've considered is using the body field of the wiki_pages table, as this contains the html code of…
Hello, I'm trying to utilize an API call to pull completed certificates and was hoping to download and store the certs as a backup. I can successfully run the API call but it will not allow me to view the certificate unless I access the URL while signed into an account where it's "my" cert. Is there a permissions setting…
UI for weekly progression idea that rest in the Schedule tab of the **K-12 UI** of Canvas it's incomplete and I really would not take it and push it into instance but I am going to post it here because in the past people like @James && @robotcars || @Steve_25 have had terrific input in the past... maybe w/their eyes and…
I have a new React + Flask webapp. It has its own login for users to start using the app. I have added this as an external tool in Canvas. What I want initially is to see of canvas users can start using the webapp without having to login if they click on the external tool link in a canvas course. I have 2 methods…