html-formhandler icon indicating copy to clipboard operation
html-formhandler copied to clipboard

H::F::M::Cookbook mentions `widget_name_space` should be `field_name_space`

Open micronet24 opened this issue 4 years ago • 0 comments

In the Cookbook's section Split up your forms into reusable pieces it is mentioned, that the namespace to the custom fields should be registered using

has '+widget_name_space' => ( default => sub {['Form::Field']} );

Unfortunately, this doesn't work. Looking into HTML::FormHandler::BuildFields the attribute field_name_space is used instead; widget_name_space is ignored completely.

So either the documentation is wrong, or BuildFields should take widget_name_space into account as well. Which one is to prefer?

micronet24 avatar Oct 16 '21 11:10 micronet24