View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Andrew Sterling Hanenkamp > Contentment-0.011_033 > Contentment::Form::Widget::Hidden



Annotate this POD

Module Version: 0.03   Source  


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:

name (required)

The name of the value to store in the form.

value (required)

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, <>


Copyright 2005 Andrew Sterling Hanenkamp <>. 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.

syntax highlighting: