form input fields in general
config basics
In general, you have to specify an array of elements for the form generator class. Let's see the basics - these are the settings available for all the input types:
<?php
$config = Array(
'name' => Array( // input name of input field
'type' => 'inputText',
'displayname' => 'This is an input field',
'value' => 'some string here',
// customization settings
'help' => 'some help here',
'html' => 'CLASS="inputfieldstyle"',
'readonly' => '1 | 0',
// special purpose settings
'display' => '1 | 0',
'htmlid' => 'name1'
'rowlayout' => '%displayname% -- %prefix% %element% %postfix%',
)
);
?>
For some input types (inputRadio, select) the value field has to be an array
containing 'value' => 'name' pairs. You can also
use this field for the dynamic version
of these input types (inputRadioDynamic, selectDynamic) :
they will be displayed as first in the list (useful when
you want to have a 'no choice' selection).
- the field name:
The
'id'is used as the name of the input field (after posting the form, it's gonna be the$_POST['id']). - 'html' - you can use the
htmlsetting to insert anything inside the element tag: to specify eg. a CSS class, row and column sizes for a textarea, add MULTIPLE attribute for a select and so on.
