General developer forum

Insert Form Element Inside Table

 
Easter Island / Rapa Nui May 2017
Re: Insert Form Element Inside Table
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();


 
Average of ratings: -