Changeset 61 in text-formbuilder for trunk/lib/Text/FormBuilder.pm
- Timestamp:
- 02/10/05 16:52:01 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder.pm
r60 r61 17 17 my %DEFAULT_OPTIONS = ( 18 18 method => 'GET', 19 javascript => 0,19 ## javascript => 1, 20 20 keepextras => 1, 21 21 ); … … 231 231 $$_{columns} = int(@{ $$_{options} } / 8) + 1; 232 232 } 233 #$$_{ulist} = 1 if ref $$_{options} and @{ $$_{options} } >= 3;234 233 } 235 234 … … 1053 1052 1054 1053 This currently only works for single line text fields. 1055 1054 1055 To create a growable field, add a C<*> after the name (and size, if 1056 given). Growable fields have a button that allows the user to add a 1057 copy of the field input. Currently, this only works for C<text> and 1058 C<file> fields. Growable fields also require JavaScript to function 1059 correctly. 1060 1061 # you can have as many people as you like 1062 person*:text 1063 1056 1064 For the input types that can have options (C<select>, C<radio>, and 1057 1065 C<checkbox>), here's how you do it: … … 1212 1220 sections. 1213 1221 1222 And of course, to Nathan Wiger, for giving use CGI::FormBuilder in the 1223 first place. Thanks Nate! 1224 1214 1225 =head1 AUTHOR 1215 1226
Note: See TracChangeset
for help on using the changeset viewer.