Changeset 56 in text-formbuilder for trunk/lib/Text/FormBuilder.pm


Ignore:
Timestamp:
01/13/05 15:00:25 (19 years ago)
Author:
peichman
Message:

single-line textfields can be given a maxlength

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Text/FormBuilder.pm

    r55 r56  
    624624=head1 REQUIRES 
    625625 
    626 L<Parse::RecDescent>, L<CGI::FormBuilder>, L<Text::Template> 
     626L<Parse::RecDescent>, 
     627L<CGI::FormBuilder>, 
     628L<Text::Template>, 
     629L<Class::Base> 
    627630 
    628631=head1 DESCRIPTION 
     
    10431046    description[4,30]:textarea 
    10441047 
     1048To also set the C<maxlength> attribute for text fields, add a C<!> after 
     1049the size: 
     1050 
     1051    # ensure that all titles entered are 40 characters or less 
     1052    title[40!]:text 
     1053 
     1054This currently only works for single line text fields. 
     1055     
    10451056For the input types that can have options (C<select>, C<radio>, and 
    10461057C<checkbox>), here's how you do it: 
Note: See TracChangeset for help on using the changeset viewer.