Hi,<br><br>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.<br>
<br>jagdish<br><br><div class="gmail_quote">On Wed, Jul 9, 2008 at 5:58 AM, jagdish eashwar &lt;<a href="mailto:jagdish.eashwar@gmail.com">jagdish.eashwar@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I have put in a &#39;submit&#39; and a &#39;cancel&#39; 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. <br>

<br>code for the &#39;submit&#39; button:<br><br>if ($self-&gt;formbuilder-&gt;submitted eq &#39;Submit&#39; &amp;&amp; $self-&gt;formbuilder-&gt;validate) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - do something -<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>

code for the &#39;cancel&#39; button:<br><br>if ($self-&gt;formbuilder-&gt;submitted eq &#39;Cancel&#39;) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - do nothing -<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br>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?<br>
<font color="#888888">
<br>jagdish eashwar<br>
</font></blockquote></div><br>