[Catalyst] Catalyst::Controller::FormBuilder

jagdish eashwar jagdish.eashwar at gmail.com
Wed Jul 9 14:00:57 BST 2008


Hi,

I got the answer in the intermediate tutorial at formbuilder .org. A small
piece of code called jsfunc is to be input into the form definition. The
code I mentioned in my earlier mail simply skipped checking whether the form
had been validated on the server side; the javascript would have still
insisted on validation. With jsfunc in place, that is also overcome.

jagdish

On Wed, Jul 9, 2008 at 5:58 AM, jagdish eashwar <jagdish.eashwar at gmail.com>
wrote:

> 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 includi=
ng
> 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/c9771=
783/attachment.htm


More information about the Catalyst mailing list