Hi,
I'm trying to remove the submit button from a specific webform, but since I'm not very proficient with php and some other coding I haven't been able to find a way to do this.
I have found different forum threads that explain about doing this using a hook_form_alter, but like I said I don't know where to start about this.
Any help would be appreciated.

Comments

nevets’s picture

If you remove the submit button won't that make the webform "useless"?

fcp078’s picture

Yes. I should have explained that I am trying to make one page/node with very specific content and the webform allowed for the best implementation of this.
I am not trying to have submissions (at least not for now).

Web Assistant’s picture

Maybe give this a read...

http://www.lullabot.com/articles/modifying-forms-drupal-5-and-6

...it really helped me when I didn't know anything about altering forms.

ThALhA’s picture

Try to find out below code from the html output of corresponding webform node

 <form id="webform-client-form-x" class="webform-client-form" enctype="multipart/form-data" method="post" accept-charset="UTF-8" action="some_form_action">

<--- your form elements will be here --->

</form>
 

and add corresponding form id in your style sheet as follows

#webform-client-form-x input[type="submit"] {
display:none;
}

Replace x with your webform id (say webform-client-form-1)

Hope, it helps

fcp078’s picture

Thank you so much, ThALhA. That worked like a charm!
As you can tell I'm still learning my way with Drupal, but I'm getting there. I appreciate your help and Web Assistant's too; I'll be giving your link a good read.
Thank you again.

ThALhA’s picture

You are welcome and happy Drupal days ahead!