With a HTML::FormHandler formular I want to render only the field part of an form field.
<div>
my label [% form.field('name').render %]
</div>
This renders the field and a label.
With a HTML::FormHandler formular I want to render only the field part of an form field.
<div>
my label [% form.field('name').render %]
</div>
This renders the field and a label.
On
I've found an another way in the manual of HFH.
package Test::Form;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler';
has '+name' => ( default => 'testform' );
has '+widget_wrapper' => ( default => 'None' );
has '+auto_fieldset' => ( default => 0 );
has_field 'foo';
I see in the code that the renderer checks for:
so you need to set this flag. How it is done? I can only make a guess.
you did not specify which widget you are using, and if I understand it right, you should extend him and create your own widget.