Contentment::Form::Widget::Hidden - Purely server-side form data
my $form = Contentment::Form->define( # ... widgets => { foo => { name => 'foo', class => 'Hidden', }, }, # ... ); # There's no need to render this widget. The render methods do nothing.
This is the anti-widget. This provides form storage without actually sending the client anything. The render methods for this widget do nothing, so you don't even need to bother calling them if you don't want to.
The constructor accepts the following arguments:
The name of the value to store in the form.
The value to store in this field. This value cannot be modified by anything the client does making it extremely safe. Thus, no validation is really necessary. Also, this value may contain any data that can be serialized by YAML.
Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>
Copyright 2005 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Contentment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Contentment
CPAN shell
perl -MCPAN -e shell install Contentment
For more information on module installation, please visit the detailed CPAN module installation guide.