Insert Form Element Inside Table

Re: Insert Form Element Inside Table

by Russell England -
Number of replies: 0
Picture of Plugin developers

Hey Edgar

There is also the toHtml() method that outputs the html for a form field, so you can put it where you want it.

So create the element:

$checkbox = $mform->createElement('advcheckbox', 'mycheckbox');

Then use something like this to display the field in your table somewhere:

$output .= $checkbox->toHtml();