Drupal coder

Get the most out of Drupal webform module

Today I was looking for a way to customise the confirmation e-mail sent by the webform module. It appears that it's possible to customise this mail per form. By looking a bit further I discovered a file I had overlooked all of the time. This little file is called THEMING.txt and it delivers what is promised: it shows you how to customise all things Webform.

What will you discover there?

  • Theme submission emails
  • Theme the confirmation page
  • Theme display of an entire webform

Great! This teaches you how to customise the 3 parts in a webform subimission process: form display, confirmation screen and confirmation e-mail.

Go ahead and read it here: http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/webform/THE...

September 05, 2008Drupal, theming, webform

Comments

Here is a short howto I wrote on getting custom code to run with Webform.
It details writing a custom module, copying the Webform template to match the nodeID, and adding custom javascript/jquery for form processing.

http://docs.quantact.com/drupal-webform-custom-php-code

getting a 404 from that link...

I was trying 2 restrict the acess of webform for users of a particular group . But it seems there is nothign 2 do so. bcz all the authenticated users can access the created webform even if they dnt belong 2 that particular group. Can anyone help me on this.

I'd like to know if there's an extension to add "sections".

For example "Section 1: Your Details", "Section 2: Your skills"...

Hi,

Thanks for the explanation.
But could any body give a detailed example of what, for example, the webform-confirmation.tpl.php should look like after it has been themed and customised. I think a lot off people are stuck on this. I've Drupalling for quite a while now but I can't figure this out.

Thnx in advance.

Thanks

It is very helpful for me..... :)

I am getting an Access Denied error when hitting the Quiz page. Is there a specific permission that needs to be configured for this?

Interesting. I thought we could just see the results of the webform.
Thank you,

Yeah, would be cool to see a walk through on this.

asdfadsfa

"Open up your new file and customize the webform however you like."

... and then a miracle occurs?

Sorry, I don't get it.

For instance, how would you make some description appear above a field instead of below?
And how would you place text which isn't connected to a particular webform component, e.g., "blah blah in the following section" - I don't mean the title, but say halfway through the form?

webform-form.tpl.php is pretty cryptic.

thanks for any advice.

How did you get your drupal webform to look so nice?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options