How to add a form to a table?

Re: How to add a form to a table?

by Mark Johnson -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

If you're trying to use an mform, then the trouble you're having is that the display() method outputs the form directly, rather than just returning the HTML for inclusion within another element.

The simplest solution to your problem is probably to use $OUTPUT->single_button() inside each table row.