field industry => { required => 0, min_length => 1, max_length => 255, validation => sub { _validate_industry( @_ ) }, label => 'Industry', }; $form = MyApp::Form::Customer->new( params => { industry => [ $query->param('industry') ] } );