Introduction to Drupal 7                           Session 6.2                           WebformsDrupalist: Kalin Chernev ...
Agenda•    The Webform module – common uses•    Administration overviews•    Case study – making the contacts form•    Pop...
The Webform module• Webform is the most popular and widely used  module for making forms in Drupal• The difference between...
Adding a new webform• Download and install the module• New content type Webform has been created• You have to create a nod...
Adding fields to the webform• On webforms you can manage fields in a similar  manner you manage the fields on content type...
Adding fields to the webform•    First name – textfield - mandatory•    Family name – textfield•    E-mail – email field –...
Webform email settingsYou can use webform components for thesubmission results:       – Email from address: the email fiel...
Webform form settings•    Confirmation message settings•    Page redirect on submission•    Limits on submissions•    Form...
The form is readyDrupalist: Kalin Chernev      Course by Init Lab (http://initlab.org)   9
Popular add-on modules• Options Element: Provides a better UI for creating  select list options.• Select or Other: Allows ...
Time for questionsDrupalist: Kalin Chernev       Course by Init Lab (http://initlab.org)   11
ContactsKalin Chernev       – E: kalata@shtrak.eu       – T: twitter.com/kalinchernev       – U: http://shtrak.eu/kalataDr...
Upcoming SlideShare
Loading in …5
×

Introduction to Drupal 7 - Webforms

5,639 views

Published on

Second part of lecture 6, building webforms in Drupal 7. Making contacts page with textfields, textareas, select lists, numbers and others.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,639
On SlideShare
0
From Embeds
0
Number of Embeds
169
Actions
Shares
0
Downloads
66
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Introduction to Drupal 7 - Webforms

  1. 1. Introduction to Drupal 7 Session 6.2 WebformsDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 1
  2. 2. Agenda• The Webform module – common uses• Administration overviews• Case study – making the contacts form• Popular add-on modulesDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 2
  3. 3. The Webform module• Webform is the most popular and widely used module for making forms in Drupal• The difference between Webform forms and content type forms – Content type forms are storing nodes – Webform forms do not make nodes, they send results over email directly – Results from Webform forms can be easily exported in excel sheet• Common uses are surveys and contact formsDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 3
  4. 4. Adding a new webform• Download and install the module• New content type Webform has been created• You have to create a node from the Webform content type to attach your fields to it• Go to node/add/webform and enter a title as Contact usDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 4
  5. 5. Adding fields to the webform• On webforms you can manage fields in a similar manner you manage the fields on content types• You have also settings for email notifications and the form resultsDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 5
  6. 6. Adding fields to the webform• First name – textfield - mandatory• Family name – textfield• E-mail – email field – mandatory• Telephone – textfield – mandatory• Topic – select list drop down• Comments – textarea - mandatoryDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 6
  7. 7. Webform email settingsYou can use webform components for thesubmission results: – Email from address: the email field component – Email from name: the first/family name comp. – The subject can also take short codesDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 7
  8. 8. Webform form settings• Confirmation message settings• Page redirect on submission• Limits on submissions• Form status (open/closed)• Role permissions settings for submissions• Generate a block with the form• Submit button label changeDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 8
  9. 9. The form is readyDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 9
  10. 10. Popular add-on modules• Options Element: Provides a better UI for creating select list options.• Select or Other: Allows for a textfield for "Other..." options in select lists and radio buttons.• Date Popup (part of Date): Enables popup calendars in Webform date components.• MIME Mail: Send HTML and attachments in e-mails sent by Webform.• Mollom or CAPTCHA: Protect your webforms from spam.• Webform Validation: Add advanced validation based on a variety of conditions.Drupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 10
  11. 11. Time for questionsDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 11
  12. 12. ContactsKalin Chernev – E: kalata@shtrak.eu – T: twitter.com/kalinchernev – U: http://shtrak.eu/kalataDrupalist: Kalin Chernev Course by Init Lab (http://initlab.org) 12

×