[html-formfu] textfield value
Carl Franks
fireartist at gmail.com
Thu Jul 12 10:01:53 GMT 2007
On 11/07/07, kewei xiao <kewei.xiao at nald.ca> 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
More information about the HTML-FormFu
mailing list