Hi, On 2 September 2010 21:01, Octavian Rasnita <orasn...@gmail.com> wrote: > I've seen that if I set a form item (text field) as disabled, even if it > contains data, HTML::FormFu::DBIC sees it as undef. > Is this way of working intended? > > I want to set it as disabled for not allowing the user to change it but I > want the data to be sent.
I'm afraid not - if the field has the disabled="disabled" attribute, the browser doesn't send a key/value pair to the server for that field. However, if you add $element->model_config->{readonly} = 1; to the field before calling update() it won't be set undef. Carl _______________________________________________ HTML-FormFu mailing list HTML-FormFu@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu