Example form is linked to a database table, but won't be saved in this example.

When you submit the form, the value is presented with debug_dump(), so strings are quoted and array values listed.

:: Info text
: - Stop the submitted form from bring processed
: - Don't process the form, redirect to another page (e.g. login after session timeout), and remember the values for when they return.

or back to examples

	$field = new form_field_text($form, 'Name');
	$field->min_length_set('Your name is required.');
	$field->max_length_set('Your name cannot be longer than XXX characters.');
	$field->input_data_set('my-custom', 'value');
	$field->info_set('Info text');
	$field->required_mark_set('X'); // Probably best set on the main form object though.
	$field->required_mark_position_set('right'); // or 'left' (default) or 'none'
	$field->autofocus_set(true); // Can also be set on main form object.
	$field->autocomplete_set(true); // See WHATWG spec for values such as 'billing name'
	$field->print_include_set(true); // Print on main form automatically, e.g. $form->html();
	$field->print_hidden_set(false); // Will appear in form automatically, but as a hidden field.
	// $field->error_set('My custom error, replacing other errors');
	// $field->error_add('Additional custom error');
	// $field->html();
	// $field->html_label();
	// $field->html_input();