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...

Written on September 05, 2008 at 23:05, tagged as Drupal, modules, theming, things you might have overlooked, webform

Comments

"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

About

drupalcoder.com is a blog on all things Drupal in specific and LAMP on OS X in general. It is maintained by Davy Van Den Bremt, a Belgian (Drupal) web developer and designer living in Ghent. The goal of this blog is to log all interesting things that have crossed the writer's path while developing Drupal sites. You can read all about Davy's professional activities on his LinkedIn profile. If you want to get in touch, use the contact form.