Hi all,
I am currently experimenting with H::FF::M::DBIC and
Catalyst::Controller::H::FF.
Consider the yaml form config below.
The select element is filled correctly (value is the id field, label is the
groupname field). So far so good.
But, naive me, I was hoping when calling $form->param_value('groupname') in
the catalyst controller I would have the object automagically inflated.
Instead, I only got the id value.
Is there an option to set to have this behaviour ? Like you have the
auto_inflate option for a DateTime field for instance.
Or do you need to create a custom H::FF::Inflator class ?

Thanks and regards,
Marc


<yaml_form_config>
elements:
 - type: Select
   name: groupname
   label: Group
   model_config:
     resultset: Radgroupcheck
     condition:
      attribute: Max-Octets
      groupname:
        IN:
          - Group1
          - Group2
     attributes:
       group_by: groupname
   empty_first: true
   empty_first_label: '- select group -'
   constraints:
     - Required
</yaml_form_config>
_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to