[Catalyst] Catalyst::Controller::FormBuilder
    jagdish eashwar 
    jagdish.eashwar at gmail.com
       
    Wed Jul  9 01:28:19 BST 2008
    
    
  
Hi,
I have put in a 'submit' and a 'cancel' button on my form. No field needs to
be filled in and no validation is necessary when the cancel button is
clicked. One can make FormBuilder skip the validation by just not including
it in the code.
code for the 'submit' button:
if ($self->formbuilder->submitted eq 'Submit' &&
$self->formbuilder->validate) {
            - do something -
                     }
code for the 'cancel' button:
if ($self->formbuilder->submitted eq 'Cancel') {
           - do nothing -
                     }
I am, however, unable to get FormBuilder to not insist on the required
fields being filled in when the form is cancelled. How can one do that?
jagdish eashwar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080709/d6309=
36e/attachment.htm
    
    
More information about the Catalyst
mailing list