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.
I see in the code that the renderer checks for:
$self->has_flag('no_render_label')
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.
package HTML::FormHandler::Field::Checkbox::NoLabel;
use HTML::FormHandler::Moose;
extends 'HTML::FormHandler::Field::Checkbox';
our $VERSION = '0.01';
has '+no_render_label' => ( default => 1 );