Re: How do I handle a button being clicked? by Benjamin Ellis - Friday, February 5, 2021, 11:08 PM Number of replies: 0 It shouldn't need JS to work. Your button has to be defined in the 'content' of the block so you need to append output from the single_button() function to the list e.g. $content = $mystudentlist . $OUTPUT->single_button(.....) ;