GoodForm


Configuration

GoodForm has some configuration settings which you can customise to suit your needs. They will apply to all Goodform instances unless overridden in the instances themselves. These are:

Name Type Description Default Since
invalid_attributes array A list of attributes that, when passed to an input method, are not included in the elements attributes. see config 1.2
allowed_dm_attributes array A list of attributes, from a datamapper model's field validation array, that will be transferred to the fields form element. see config 1.2
error_class string Default class applied to all goodform error elements. 'error' 1.2
error_prefix string String prefixed to the error field name and used as a unique class. '' 1.2
error_suffix string String suffixed to the error field name and used as a unique class. '-error' 1.2
tooltip_class string Default class applied to all goodform tooltip elements. 'tooltip' 1.2
tooltip_prefix string String prefixed to the tooltip field name and used as a unique class. '' 1.2
tooltip_suffix string String suffixed to the tooltip field name and used as a unique class. '-tooltip' 1.2
input_group_label_class string Class given to input group element labels. Used to schematically differentiate these sub-labels from field labels 'label' 1.2