Thanks prajwala. I&#39;ll mail it to support mailing list.<br><br><div class="gmail_quote">On Mon, Oct 10, 2011 at 3:13 PM, Prajwala Manchikatla <span dir="ltr">&lt;<a href="mailto:prajwala.manchikatla@azri.biz">prajwala.manchikatla@azri.biz</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><span style="font-family:arial, sans-serif;font-size:13px;background-color:rgb(255, 255, 255)">Hi Rohit,<div><br></div>

<div>This is a support request, so it should go to support mailing list. </div>

<div>You can write your custom submit handler by using hook_form_alter. </div><div><br></div><div>function MODULE_form_alter(&amp;$form, &amp;$form_state, $form_id)  {</div><div>  if ($form_id == &#39;<span style="font-family:monospace;white-space:pre-wrap">webform_client_form_4</span>&#39;) {</div>



<div>    $form[&#39;#submit&#39;][] = &#39;custom_form_submit_handler_function&#39;; // Note that this function will be called after the default webform submit handler</div><div>  }</div><div>}</div><div><br></div><div>function custom_form_submit_handler_function($form, &amp;$form_state) {</div>



<div>  // write your custom code</div><div>}<br><br>Regards,</div></span><div><div></div><div class="h5"><br><div class="gmail_quote">On Mon, Oct 10, 2011 at 1:50 PM, Rohit Sharma <span dir="ltr">&lt;<a href="mailto:imreckless@gmail.com" target="_blank">imreckless@gmail.com</a>&gt;</span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><pre><span style="font-family:tahoma,sans-serif">Hi, </span><br style="font-family:tahoma,sans-serif"><span style="font-family:tahoma,sans-serif">Here is a snippet of a webform i created through Webform Module. Drupal 6.</span><br style="font-family:tahoma,sans-serif">





<span style="font-family:tahoma,sans-serif">All i want is my custom code to be executed on submit. But no documentation is precise</span>.<br style="font-family:arial,helvetica,sans-serif"><br>&lt;<span>form</span><span> action</span>=<span>&quot;/RWPS/?q=node/4&quot;  </span><span>accept-charset</span>=<span>&quot;UTF-8&quot; </span><span>method</span>=<span>&quot;post&quot; </span><span>id</span>=<span>&quot;webform-client-form-4&quot; </span><span>class</span>=<span>&quot;webform-client-form&quot; </span><span>enctype</span>=<span>&quot;multipart/form-data&quot;</span>&gt;
&lt;<span>div</span>&gt;&lt;<span>div</span><span> class</span>=<span>&quot;webform-component webform-component-textfield&quot; </span><span>id</span>=<span>&quot;webform-component-md5&quot;</span>&gt;&lt;<span>div</span><span> class</span>=<span>&quot;form-item&quot; </span><span>id</span>=<span>&quot;edit-submitted-md5-wrapper&quot;</span>&gt;
 &lt;<span>label</span><span> for</span>=<span>&quot;edit-submitted-md5&quot;</span>&gt;MD5: &lt;/<span>label</span>&gt;
 &lt;<span>input</span><span> type</span>=<span>&quot;text&quot; </span><span>maxlength</span>=<span>&quot;128&quot; </span><span>name</span>=<span>&quot;submitted[md5]&quot; </span><span>id</span>=<span>&quot;edit-submitted-md5&quot; </span><span>size</span>=<span>&quot;32&quot; </span><span>value</span>=<span>&quot;&quot; </span><span>class</span>=<span>&quot;form-text&quot; </span><span><span>/</span></span>&gt;
&lt;/<span>div</span>&gt;
&lt;/<span>div</span>&gt;&lt;<span>div</span><span> class</span>=<span>&quot;webform-component webform-component-textfield&quot; </span><span>id</span>=<span>&quot;webform-component-sha256&quot;</span>&gt;&lt;<span>div</span><span> class</span>=<span>&quot;form-item&quot; </span><span>id</span>=<span>&quot;edit-submitted-sha256-wrapper&quot;</span>&gt;
 &lt;<span>label</span><span> for</span>=<span>&quot;edit-submitted-sha256&quot;</span>&gt;SHA256: &lt;/<span>label</span>&gt;
</pre><pre> &lt;<span>input</span><span> type</span>=<span>&quot;text&quot; </span><span>maxlength</span>=<span>&quot;64&quot; </span><span>name</span>=<span>&quot;submitted[sha256]&quot; </span><span>id</span>=<span>&quot;edit-submitted-sha256&quot; </span><span>size</span>=<span>&quot;64&quot; </span><span>value</span>=<span>&quot;&quot; </span><span>class</span>=<span>&quot;form-text&quot; </span><span><span>/</span></span>&gt;
&lt;/<span>div</span>&gt;
&lt;/<span>div</span>&gt;&lt;<span>input</span><span> type</span>=<span>&quot;hidden&quot; </span><span>name</span>=<span>&quot;details[sid]&quot; </span><span>id</span>=<span>&quot;edit-details-sid&quot; </span><span>value</span>=<span>&quot;&quot;  </span><span><span>/</span></span>&gt;
&lt;<span>input</span><span> type</span>=<span>&quot;hidden&quot; </span><span>name</span>=<span>&quot;details[page_num]&quot; </span><span>id</span>=<span>&quot;edit-details-page-num&quot; </span><span>value</span>=<span>&quot;1&quot;  </span><span><span>/</span></span>&gt;
&lt;<span>input</span><span> type</span>=<span>&quot;hidden&quot; </span><span>name</span>=<span>&quot;details[page_count]&quot; </span><span>id</span>=<span>&quot;edit-details-page-count&quot; </span><span>value</span>=<span>&quot;1&quot;  </span><span><span>/</span></span>&gt;
&lt;<span>input</span><span> type</span>=<span>&quot;hidden&quot; </span><span>name</span>=<span>&quot;details[finished]&quot; </span><span>id</span>=<span>&quot;edit-details-finished&quot; </span><span>value</span>=<span>&quot;0&quot;  </span><span><span>/</span></span>&gt;
&lt;<span>input</span><span> type</span>=<span>&quot;hidden&quot; </span><span>name</span>=<span>&quot;form_build_id&quot; </span><span>id</span>=<span>&quot;form-96640775ae006eafa3df3b980bdd2ead&quot; </span><span>value</span>=<span>&quot;form-96640775ae006eafa3df3b980bdd2ead&quot;  </span><span><span>/</span></span>&gt;
&lt;<span>input</span><span> type</span>=<span>&quot;hidden&quot; </span><span>name</span>=<span>&quot;form_token&quot; </span><span>id</span>=<span>&quot;edit-webform-client-form-4-form-token&quot; </span><span>value</span>=<span>&quot;c2c0540261fb185ef87e38acd8cb2b1c&quot;  </span><span><span>/</span></span>&gt;
&lt;<span>input</span><span> type</span>=<span>&quot;hidden&quot; </span><span>name</span>=<span>&quot;form_id&quot; </span><span>id</span>=<span>&quot;edit-webform-client-form-4&quot; </span><span>value</span>=<span>&quot;webform_client_form_4&quot;  </span><span><span>/</span></span>&gt;
&lt;<span>div</span><span> id</span>=<span>&quot;edit-actions&quot; </span><span>class</span>=<span>&quot;form-actions form-wrapper&quot;</span>&gt;&lt;<span>input</span><span> type</span>=<span>&quot;submit&quot; </span><span>name</span>=<span>&quot;op&quot; </span><span>id</span>=<span>&quot;edit-submit&quot; </span><span>value</span>=<span>&quot;Submit&quot;  </span><span>class</span>=<span>&quot;form-submit&quot; </span><span><span>/</span></span>&gt;
&lt;/<span>div</span>&gt;
&lt;/<span>div</span>&gt;&lt;/<span>form</span>&gt;</pre>form Id is : webform_client_form_4<br><br>Is there a way to write my own submit code , can anyone give me a precise method that works. <br>

<br>I want to display a message when form submits to test that hook is called or not ? I tried webform_submit()<br><br>in my case i wrote webform_webform_client_form_4_submit() hooks, does not work.<br clear="all"><font color="#888888"><br>



-- <br>

Thanks and regards,<br>Rohit Sharma<br><br><br>
</font></blockquote></div><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanks and regards,<br>Rohit Sharma<br><br><br>