On 11/07/07, kewei xiao <[EMAIL PROTECTED]> wrote:
Is there a way to pre-fill textfield value in yml?  e.g if I want to
update a item, when I click on that item, the textfield of item's name,
description, etc should be filled with data from Database.

Use default()

So, in yaml:
---
element:
 - name: foo
   default: bar

Or to set values from a database:
 $form->get_field( $name )->default( $value );
(this is the way DBIx::Class::FormFu does it)

Carl

_______________________________________________
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