<pre id="line130"><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><<span class="start-tag">form</span><span class="attribute-name"> action</span>=<span class="attribute-value">"/RWPS/?q=node/4" </span><span class="attribute-name">accept-charset</span>=<span class="attribute-value">"UTF-8" </span><span class="attribute-name">method</span>=<span class="attribute-value">"post" </span><span class="attribute-name">id</span>=<span class="attribute-value">"webform-client-form-4" </span><span class="attribute-name">class</span>=<span class="attribute-value">"webform-client-form" </span><span class="attribute-name">enctype</span>=<span class="attribute-value">"multipart/form-data"</span>>
<<span class="start-tag">div</span>><<span class="start-tag">div</span><span class="attribute-name"> class</span>=<span class="attribute-value">"webform-component webform-component-textfield" </span><span class="attribute-name">id</span>=<span class="attribute-value">"webform-component-md5"</span>><<span class="start-tag">div</span><span class="attribute-name"> class</span>=<span class="attribute-value">"form-item" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-submitted-md5-wrapper"</span>>
<<span class="start-tag">label</span><span class="attribute-name"> for</span>=<span class="attribute-value">"edit-submitted-md5"</span>>MD5: </<span class="end-tag">label</span>>
<<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text" </span><span class="attribute-name">maxlength</span>=<span class="attribute-value">"128" </span><span class="attribute-name">name</span>=<span class="attribute-value">"submitted[md5]" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-submitted-md5" </span><span class="attribute-name">size</span>=<span class="attribute-value">"32" </span><span class="attribute-name">value</span>=<span class="attribute-value">"" </span><span class="attribute-name">class</span>=<span class="attribute-value">"form-text" </span><span class="error"><span class="attribute-name">/</span></span>>
</<span class="end-tag">div</span>>
</<span class="end-tag">div</span>><<span class="start-tag">div</span><span class="attribute-name"> class</span>=<span class="attribute-value">"webform-component webform-component-textfield" </span><span class="attribute-name">id</span>=<span class="attribute-value">"webform-component-sha256"</span>><<span class="start-tag">div</span><span class="attribute-name"> class</span>=<span class="attribute-value">"form-item" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-submitted-sha256-wrapper"</span>>
<<span class="start-tag">label</span><span class="attribute-name"> for</span>=<span class="attribute-value">"edit-submitted-sha256"</span>>SHA256: </<span class="end-tag">label</span>>
</pre><pre id="line140"> <<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"text" </span><span class="attribute-name">maxlength</span>=<span class="attribute-value">"64" </span><span class="attribute-name">name</span>=<span class="attribute-value">"submitted[sha256]" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-submitted-sha256" </span><span class="attribute-name">size</span>=<span class="attribute-value">"64" </span><span class="attribute-name">value</span>=<span class="attribute-value">"" </span><span class="attribute-name">class</span>=<span class="attribute-value">"form-text" </span><span class="error"><span class="attribute-name">/</span></span>>
</<span class="end-tag">div</span>>
</<span class="end-tag">div</span>><<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"details[sid]" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-details-sid" </span><span class="attribute-name">value</span>=<span class="attribute-value">"" </span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"details[page_num]" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-details-page-num" </span><span class="attribute-name">value</span>=<span class="attribute-value">"1" </span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"details[page_count]" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-details-page-count" </span><span class="attribute-name">value</span>=<span class="attribute-value">"1" </span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"details[finished]" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-details-finished" </span><span class="attribute-name">value</span>=<span class="attribute-value">"0" </span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"form_build_id" </span><span class="attribute-name">id</span>=<span class="attribute-value">"form-96640775ae006eafa3df3b980bdd2ead" </span><span class="attribute-name">value</span>=<span class="attribute-value">"form-96640775ae006eafa3df3b980bdd2ead" </span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"form_token" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-webform-client-form-4-form-token" </span><span class="attribute-name">value</span>=<span class="attribute-value">"c2c0540261fb185ef87e38acd8cb2b1c" </span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"hidden" </span><span class="attribute-name">name</span>=<span class="attribute-value">"form_id" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-webform-client-form-4" </span><span class="attribute-name">value</span>=<span class="attribute-value">"webform_client_form_4" </span><span class="error"><span class="attribute-name">/</span></span>>
<<span class="start-tag">div</span><span class="attribute-name"> id</span>=<span class="attribute-value">"edit-actions" </span><span class="attribute-name">class</span>=<span class="attribute-value">"form-actions form-wrapper"</span>><<span class="start-tag">input</span><span class="attribute-name"> type</span>=<span class="attribute-value">"submit" </span><span class="attribute-name">name</span>=<span class="attribute-value">"op" </span><span class="attribute-name">id</span>=<span class="attribute-value">"edit-submit" </span><span class="attribute-name">value</span>=<span class="attribute-value">"Submit" </span><span class="attribute-name">class</span>=<span class="attribute-value">"form-submit" </span><span class="error"><span class="attribute-name">/</span></span>>
</<span class="end-tag">div</span>>
</<span class="end-tag">div</span>></<span class="end-tag">form</span>></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"><br>-- <br>
Thanks and regards,<br>Rohit Sharma<br><br><br>