clonefish logo

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).