NAME

HTML::FormHandler::Fields - role to build field array

SYNOPSIS

These are the methods that are necessary to build and access the fields arrays in a form and a compound field. This is a role which is composed into HTML::FormHandler and HTML::FormHandler::Field::Compound

fields

The field definitions as built from the field_list and the 'has_field' declarations. This is a MooseX::AttributeHelpers::Collection::Array, and provides clear_fields, add_field, remove_last_field, num_fields, has_fields, and set_field_at methods.

field( $full_name )

Return the field objct with the full_name passed. Will return undef if the field is not found, or will die if passed a second parameter.

field_index

Convenience function for use with 'set_field_at'. Pass in 'name' of field (not full_name)

sorted_fields

Calls fields and returns them in sorted order by their "order" value. Non-sorted fields are retrieved with 'fields'.

clear methods

clear_data
clear_fields
clear_error_fields

Dump information

dump - turn verbose flag on to get this output
dump_validated - shorter version

AUTHORS

HTML::FormHandler Contributors; see HTML::FormHandler

COPYRIGHT

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.