## General developer forum

### Insert Form Element Inside Table

Re: Insert Form Element Inside Table

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: -