---
name: "HTML::FormHandler::Fields"
section: "3pm"
platform: "linux"
package: "libhtml-formhandler-perl"
version: "0.40068-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::FormHandler::Fields"
---

# HTML::FormHandler::Fields(3pm)

internal role for form and compound fields

## NAME

HTML::FormHandler::Fields - internal role for form and compound fields

## VERSION

version 0.40068

## SYNOPSIS

A role to implement field attributes, accessors, etc. To be applied to HTML::FormHandler and HTML::FormHandler::Field::Compound.

### fields

The field definitions as built from the field\_list and the 'has\_field' declarations. This provides clear\_fields, add\_field, remove\_last\_field, num\_fields, has\_fields, and set\_field\_at methods.

### field( $full\_name )

Return the field object 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
```

## AUTHOR

FormHandler Contributors - see HTML::FormHandler

## COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gerda Shank.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
