[html-formfu] Element::Button and its value

Ferruccio Zamuner nonsolosoft at diff.org
Tue Jun 9 00:22:48 GMT 2009


Hello,

       - type: Block
         attributes:
            class: submit_container
         elements:
         - type: Submit
           id: submit
           value_loc: Save

         - type: Submit
           value_loc: Cancel
           id: cancel
           name: cancel

x $form->params
0  HASH(0x2d72e6b0)
   'cancel' => HTML::FormFu::Literal=ARRAY(0x2e25e730)
      0  'Cancel'

x $form->param_value('cancel');
0  HTML::FormFu::Literal=ARRAY(0x2e25e730)

In submitted value it's not listed:

.-------------------------------------+--------------------------------------.
| Parameter                           | 
Value                                |
+-------------------------------------+--------------------------------------+
| first_name                          | Ferruccio 
                               |
| last_name                           | 
Zamuner                              |
| picture                             
|                                      |
| profile                             | test 
                                |
'-------------------------------------+--------------------------------------'

if ($form->param_value('cancel')) IS true

$HTML::FormFu::VERSION is 0.04002

While in 0.03007 same expression was false.


Thank you for answer and support.               \fer



More information about the HTML-FormFu mailing list