I would like to restrict the number of characters entered in the form to the number of characters that can be stored in the database. At the moment the text just gets truncated. The code I have is: $this -> form -> setArea('Outcome', 0, '', 0); and the display of the field is: <tr><td><?= $this -> form -> show_element('Outcome')?></td></tr>.