Form fields require information to make them useable, The following information fields will appear on most dialogs for form fields.
Default Tab
- Field Label - The field label is the label that will display on the form for this form field.(This is required)
- Field Help - The field help is an area where you can specify more detailed information about the form field.
- Required - The required check box allows you to mark a form field as required. An error will display if the submit button is clicked and this is not filled out.
- Default - The value the field will have when first loaded.
Overrides Tab
- Default Expression - A TALES expression that will be evaluated when the form is displayed to get the field default value. Leave empty if unneeded. Your expression should evaluate as a string. PLEASE NOTE: errors in the evaluation of this expression will cause an error on form display.
- Custom Validator - A TALES expression that will be evaluated when the form is validated. Validate against 'value', which will contain the field input. Return False if valid; if not valid return a string error message. E.G., "python: test(value=='eggs', False, 'input must be eggs')" will require "eggs" for input. PLEASE NOTE: errors in the evaluation of this expression will cause an error on form display.
- Enabling Expression - A TALES expression that will be evaluated when the form is displayed to determine whether or not the field is enabled. Your expression should evaluate as True if the field should be included in the form, False if it should be omitted. Leave this expression field empty if unneeded: the field will be included. PLEASE NOTE: errors in the evaluation of this expression will cause an error on form display.