HTML::FormFu::Element::_Field
Base-class for all form-field elements.
Set the form-field's default value.
Arguments: $string
If you don't want the default value to be XML-escaped, use the "default_xml" method instead of </default>.
Arguments: $localization_key
Set the default value using a L10N key.
For most fields, "value" is an alias for "default".
For the HTML::FormFu::Element::Checkbox and HTML::FormFu::Element::Radio elements, "value" sets what the value of the field will be if it is checked or selected. If the "default" is the same as the "value", then the field will be checked or selected when rendered.
For the HTML::FormFu::Element::Radiogroup and HTML::FormFu::Element::Select elements, the "value" is ignored: /values or /options provides the equivalent function.
If you don't want the value to be XML-escaped, use the "value_xml" method instead of </value>.
Set the value using a L10N key.
Set a label to communicate the purpose of the form-field to the user.
If you don't want the label to be XML-escaped, use the "label_xml" method instead of </label>.
Set the label using a L10N key.
Set a comment to be displayed along with the form-field.
If you don't want the comment to be XML-escaped, use the "comment_xml" method instead of </comment>.
Set the comment using a L10N key.
Set which tag-name should be used to contain the various field parts (field, label, comment, errors, etc.).
Default Value: 'span'
Arguments: [$javascript]
If set, the contents will be rendered within a script tag, within the field's container.
script
If "retain_default" is true and the form was submitted, but the field didn't have a value submitted, then when the form is redisplayed to the user the field will have it's value set to it's default value , rather than the usual behaviour of having an empty value.
Default Value: false
false
If "force_default" is true and the form was submitted, and the field has a default/value set, then when the form is redisplayed to the user the field will have it's value set to it's default value.
If the default value is being changed after FormFu->process is being called the later default value is respected for rendering, *but* nevertheless the input value doesn't respect that, it will remain the first value.
See "clone" in HTML::FormFu for details.
See "deflators" in HTML::FormFu for details.
See "deflator" in HTML::FormFu for details.
Arguments: [%attributes]
Arguments: [\%attributes]
Attributes added to the comment container.
If you don't want the values to be XML-escaped, use the "comment_attributes_xml" method instead of </comment_attributes>.
See "add_attributes" in HTML::FormFu:: for details.
See "add_attributes_xml" in HTML::FormFu:: for details.
See "add_attributes_loc" in HTML::FormFu:: for details.
See "del_attributes" in HTML::FormFu:: for details.
See "del_attributes_xml" in HTML::FormFu:: for details.
See "del_attributes_loc" in HTML::FormFu:: for details.
Arguments added to the field's container.
If you don't want the values to be XML-escaped, use the "container_attributes_xml" method instead of </container_attributes>.
Attributes added to the label container.
If you don't want the values to be XML-escaped, use the "label_attributes_xml" method instead of </label_attributes>.
See "filters" in HTML::FormFu for details.
See "filter" in HTML::FormFu for details.
See "constraints" in HTML::FormFu for details.
See "constraint" in HTML::FormFu for details.
See "inflators" in HTML::FormFu for details.
See "inflator" in HTML::FormFu for details.
See "validators" in HTML::FormFu for details.
See "validator" in HTML::FormFu for details.
See "transformers" in HTML::FormFu for details.
See "transformer" in HTML::FormFu for details.
See "auto_id" in HTML::FormFu for details.
See "auto_label" in HTML::FormFu for details.
See "auto_error_class" in HTML::FormFu for details.
See "auto_error_message" in HTML::FormFu for details.
See "auto_constraint_class" in HTML::FormFu for details.
See "auto_inflator_class" in HTML::FormFu for details.
See "auto_validator_class" in HTML::FormFu for details.
See "auto_transformer_class" in HTML::FormFu for details.
The template filename to be used for just the form field - not including the display of any container, label, errors, etc.
Must be set by more specific field classes.
The template filename to be used to render the label.
See "get_errors" in HTML::FormFu for details.
See "clear_errors" in HTML::FormFu for details.
See "get_deflators" in HTML::FormFu for details.
See "get_deflator" in HTML::FormFu for details.
See "get_filters" in HTML::FormFu for details.
See "get_filter" in HTML::FormFu for details.
See "get_constraints" in HTML::FormFu for details.
See "get_constraint" in HTML::FormFu for details.
See "get_inflators" in HTML::FormFu for details.
See "get_inflator" in HTML::FormFu for details.
See "get_validators" in HTML::FormFu for details.
See "get_validator" in HTML::FormFu for details.
See "get_transformers" in HTML::FormFu for details.
See "get_transformer" in HTML::FormFu for details.
Base-class for HTML::FormFu::Element::_Group, HTML::FormFu::Element::_Input, HTML::FormFu::Element::Multi, HTML::FormFu::Element::ContentButton, HTML::FormFu::Element::Textarea.
Is a sub-class of, and inherits methods from HTML::FormFu::Element
HTML::FormFu::FormFu
Carl Franks, cfranks@cpan.org
cfranks@cpan.org
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
1 POD Error
The following errors were encountered while parsing the POD:
alternative text '/values' contains non-escaped | or /
alternative text '/options' contains non-escaped | or /
To install HTML::FormFu, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FormFu
CPAN shell
perl -MCPAN -e shell install HTML::FormFu
For more information on module installation, please visit the detailed CPAN module installation guide.