[html-formfu] get_element method
Dermot
paikkos at googlemail.com
Tue Sep 16 12:18:18 BST 2008
2008/9/16 Moritz Onken <onken at houseofdesign.de>:
>
> Am 16.09.2008 um 12:44 schrieb Dermot:
>
> Could you please provide us with the corresponding yaml file?
This is the yml file. The Select is the 2nd from last element in the
config. It's the only select in the config.
---
#action: /add
indicator: add
auto_fieldset: 1
elements:
- type: Text
# Name has to be the same as the object method
name: first_name
label: First Namme
attributes:
title: First name
size: 30
filter:
- TrimEdges
- HTMLEscape
constraints:
- Required
- type: Length
min: 2
max: 40
message: Length must be between 2 and 40 characters
- type: Text
name: last_name
label: Last Name
attributes:
title: First name
size: 30
filter:
- TrimEdges
- HTMLEscape
constraints:
- Required
- type: Length
min: 2
max: 40
message: Length must be between 2 and 40 characters
- type: Text
name: usr
label: Web id
attributes:
title: Web Id
size: 5
filter:
- TrimEdges
- HTMLEscape
constraints:
- Required
- type: Length
min: 2
max: 5
message: Length must be between 2 and 5 characters
- type: Select
name: role
label: Role
constraints:
- Required
- type: Submit
name: add
value: Add
The installed version is 0.03000.
Thanx,
Dp.
More information about the HTML-FormFu
mailing list