> > In the config yml file I have this
> >
> >  - type: Select
> >    name: parent_id
> >    label: Parent
> >    model_config:
> >      resultset: Parents
> >      id_column: id
> >      label_column: label
> >
> > This is OK if we need an entry. But what if this should result in a null
> > calue in the database, or an undef in Perl?
>
> Are you meaning a NULL value for the id_column or label_column,
> or the resultset returning zero rows?

If the Parents table has 
id      label
1       Mom
2       Dad

I'd lke the select group to have three options, 
undef   <none>
1       Mom
2       Dad

And be able to tell what the label of <none> should be. Is that possible?

-- 

Med venlig hilsen
Kaare Rasmussen, Jasonic

Jasonic                 Telefon: +45 3816 2582
Nordre Fasanvej 12
2000 Frederiksberg      Email: ka...@jasonic.dk

_______________________________________________
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