How to add a form to a table?

Re: How to add a form to a table?

per Mark Johnson,
Number of replies: 0
Avatar Core developers Avatar Particularly helpful Moodlers Avatar Peer reviewers Avatar 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.