The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

Changes for version 0.35000

  • Add support for tabindex attribute. Generic html attribute setting (html_attr) Set 'processed' flag when building results in BUILD to fix problem with garbage collected results.
  • it's possible that this may break code if field values were being set outside of FormHandler, or params were set on new. Pass params on process. Set fields inside FormHandler, or run clear first, then set values. In general, it works best to update fields inside a FormHandler class, in a method or method modifier. Building results in 'new' happened originally because people expected to be able to do $form->render after new, without process. But you're better off always running 'process'. Add flag 'no_preload' to skip building results in new (BUILD) if not needed Add flag 'no_widgets' to skip applying widgets to fields if not needed Fix for Date fields in compounds. Types Printable & SingleWord use class messages Add link to the bug tracker into the HELP section in the Pod. Change how field_traits work: apply traits to field objects, add new class method apply_traits (Stephen Thirlwall)

Documentation

index of the manual
using HFH forms in Catalyst
FormHandler use recipes
introduction to using FormHandler
how to render with FormHandler
how to use FormHandler with Catalyst

Modules

HTML forms using Moose
role to build field array
base class for fields
a true or false field
captcha field with GD::SecurityImage
a checkbox field type
field consisting of subfields
a date field with formats
compound DateTime field
DateTime::Duration from HTML form values
validates email using Email::Valid
accept integer from 0 to 23
input HTML in a textarea
integer range in select list
validate an integer value
input range from 0 to 59
US currency-like values
select list 1 to 12
select list with month names
multiple select list
for nested elements of compound fields
base class for submit field
positive integer field
repeatable (array) field
used internally by repeatable fields
result class for fields
select list 0 to 59
select list day of week strings
year selection list
internal role for form and compound fields
internationalization
German message translations
base message file
Hungarian message file
Russian message file
Swedish message translations
Turkish message file
Ukrainian message file
field_list and apply_list
default model base class
Class::DBI model class (non-functioning)
stub for Object model
to add FormHandler sugar
to add sugar to roles
used in Wizard
used in Wizard
params handling
simple rendering role
render a form with a table layout
form result object
role with common code for form & field results
generate and validate captchas
customized replacement for MooseX::Traits
Moose type constraints
validation role (internal)
role to apply widgets
button field rendering widget
HTML attributes field role
hidden field rendering widget
password rendering widget
radio group rendering widget
reset field rendering widget
allow setting options from options keys
select field rendering widget
submit field rendering widget
text field rendering widget
textarea rendering widget
update field rendering widget
set HTML attributes on the form tag
widget to render a form with divs
render a form with a table layout
commong methods for widget wrappers
wrapper that doesn't wrap
wrapper class for table layout
wrapper class for table layout that doesn't wrap compound fields
create a multi-page form