Form fields can be used in cells and sections. The supported form fields in PHPRtfLite are
Checkbox example:
<?php
$checkbox = $cell->addCheckbox();
// checkbox is checked
$checkbox->setChecked();
$cell->writeText('checkbox label');
Dropdown box example:
<?php
$cell->writeText('dropdown label');
$dropdown = $cell->addDropdown();
// set dropdown items
$dropdown->setItems(array('pear', 'apple', 'pineapple'));
// add dropdown item
$dropdown->addItem('orange');
Text field example:
<?php
$cell->writeText('text field label');
$textField = $cell->addTextField();
// set text field text
$textField->setDefaultValue('Lorem ipsum');