FAQ
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/d630936e/attachment.htm

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJul 9, '08 at 1:28a
activeJul 9, '08 at 2:00p
posts2
users1
websitecatalystframework.org
irc#catalyst

1 user in discussion

Jagdish eashwar: 2 posts

People

Translate

site design / logo © 2022 Grokbase