Home Page Icon
Home Page
Table of Contents for
Drupal 7 Webform Cookbook
Close
Drupal 7 Webform Cookbook
by Douglas Vernon Denny
Drupal 7 Webform Cookbook
Drupal 7 Webform Cookbook
Table of Contents
Drupal 7 Webform Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Setting up Webform
Introduction
Downloading and installing Webform
Getting ready
How to do it...
How it works...
Configuring Webform for our website
How to do it...
How it works...
There's more...
Webform-enabled content types
Webform components
Default e-mail values
Advanced options
Setting user roles and permissions
Getting ready
How to do it...
How it works...
There's more...
2. Trying Out Webform
Introduction
Creating a Webform node
Getting ready
How to do it...
How it works...
There's more...
Adding textfield components to our Webform
Getting ready
How to do it...
How it works...
There's more...
Label
Field key
Default value
Token values
Description
Validation
Display
Operations
Cloning components
How to do it...
How it works...
There's more...
Adding e-mail components
How to do it...
How it works...
There's more...
Viewing our progress
Adding textarea components
How to do it...
How it works...
There's more...
Adding fieldset components
How to do it...
How it works...
There's more...
Theming components via Cascading Style Sheets
Adding select components
How to do it...
There's more...
Phase one complete
Configuring a reply e-mail
Getting ready
How to do it...
There's more...
Testing our Webform
Getting ready
How to do it...
3. Working with Submissions
Introduction
Viewing submissions metadata
Getting ready
How to do it...
How it works...
There's more...
Sorting tables
Viewing submissions
How to do it...
How it works...
There's more...
Paging through submissions
Resending e-mails
Viewing multiple submissions
See also
Editing submissions
Getting ready
How to do it...
How it works...
There's more...
Resending e-mails
Updating data
See also
Analyzing submitted data
How to do it...
How it works...
Downloading submissions
Getting ready
How to do it...
How it works...
There's more...
Export format
Select list options
included export components
Download range options
Deleting submissions
Getting ready
How to do it...
How it works...
Clearing the database
How to do it...
How it works...
Changing Webform results defaults
Getting ready
How to do it...
How it works...
4. Discovering More Components
Introduction
Adding a page break component
Getting ready
How to do it...
How it works...
Adding a markup component
How to do it...
How it works...
There's more...
Text format
PHP code
Token values
Conditional rules
Adding a hidden component
How to do it...
How it works...
There's more...
Browser detection
Adding a grid component
How to do it...
How it works...
There's more...
Display options
Grid analysis
Adding a date component
How to do it...
How it works...
There's more...
Validating dates
Providing a pop-up calendar
Handling date input formats
Adding a time component
How to do it...
How it works...
There's more...
Adding a file component
How to do it...
How it works...
There's more...
File types
File gotcha
Enhancing component descriptions with HTML
How to do it...
How it works...
5. Tweaking the Form Settings
Introduction
Confirming submissions
How to do it...
How it works...
There's more...
Displaying the confirmation as a Drupal message instead
Displaying a custom confirmation page
Why no Webform token replacements?
Limiting submissions
How to do it...
How it works...
There's more...
Limiting the frequency of submissions
Limiting the total number of submissions
Anonymous users caveat
Closing and reopening forms
How to do it...
How it works...
There's more...
Closed, but still accessible
Limiting access to forms
Getting ready
How to do it...
How it works...
Displaying Webform as block
How to do it...
How it works...
There's more...
Display mode
Show all Webform pages in block
Block form error messages
Saving draft submissions
How to do it...
How it works...
There's more...
Automatically save as draft between pages
Warning about previous submissions
How to do it...
How it works...
Customizing submit button text
How to do it...
How it works...
6. Extending Webform
Introduction
Enabling the Select (or other) module
Getting ready
How to do it...
How it works...
There's more...
Analyzing submissions
Using the Options Element
Getting ready
How to do it...
How it works...
There's more...
Custom option keys
Defining custom option lists
Getting ready
How to do it...
How it works...
There's more...
Options will not be editable if using pre-built list
Enabling date pop-up
Getting ready
How to do it...
How it works...
Sending HTML e-mails
Getting ready
How to do it...
How it works...
Preventing spam with CAPTCHA
Getting ready
How to do it...
How it works...
Advanced data validation
Getting ready
How to do it...
How it works...
There's more...
Adding custom validation rules
Client-side data validation
See also
7. Theming Webform
Introduction
Preparing our custom theme
How to do it...
How it works...
There's more...
Zen and subthemes
Adding custom CSS
How to do it...
How it works...
There's more...
Arrange Fields
Adding JavaScript tricks
How to do it...
How it works...
There's more...
The jQuery library
Animation missing when editing submissions?
Same page conditionals
Theming the confirmation page
How to do it...
How it works...
There's more...
Webform theming tips
What to override?
Theming Webform e-mail headers
How to do it...
How it works...
8. Acting on Webform Submissions
Introduction
Modifying submitted data
Getting ready
How to do it...
How it works...
There's more...
Deciding on direction
Solve specific problems generally
Drupal coding standards and best practices
Adding custom validation
Getting ready
How to do it...
How it works...
There's more...
9. Creating Webform Components
Introduction
Creating the component module
How to do it...
How it works...
Defining component features
Getting ready
How to do it...
How it works...
There's more...
'csv' => TRUE
'email' => TRUE
'email_address' => FALSE
'email_name' => FALSE
'required' => TRUE
'conditional' => TRUE
'title_display' => TRUE
'title_inline' => TRUE
'private' => TRUE
'group' => FALSE
'spam_analysis' => FALSE
'attachment' => FALSE
Using hook_webform_component_info_alter()
Defining component defaults
How to do it...
How it works...
Editing components
How to do it...
How it works...
There's more...
Removing the description textarea
Rendering components
How to do it...
How it works...
Displaying and reporting component data
How to do it...
How it works...
Analyzing component data
How to do it...
How it works...
Validating submitted data
How to do it...
How it works...
Testing the module
How to do it...
How it works...
There's more...
_webform_submit_component()
_webform_delete_component()
_webform_help_component()
10. Creating Submission Actions
Introduction
Creating a new select component
How to do it...
How it works...
There's more...
Determining component identifier values
Creating the module
How to do it...
Creating a conditional action
How to do it...
How it works...
There's more...
$actions['declined']['title']
$actions['declined']['href']
$actions['declined']['query']
Adding more actions
Adding a menu item
How to do it...
How it works...
Confirming the requested action
How to do it...
How it works...
Updating a submission
How to do it...
How it works...
Sending an e-mail
How to do it...
How it works...
Testing the module
Getting ready
How to do it...
How it works...
11. Presenting and Managing Data
Introduction
Building custom reports
Getting ready
How to do it...
How it works...
There's more...
Including submission metadata and links
Tweaking options
Setting role permissions
Counting Webform submissions with views
Getting ready
How to do it...
How it works...
There's more...
Obtaining help
Tracking changes to submissions
Getting ready
How to do it...
How it works...
12. Going Out of the Box
Introduction
Building a survey form
Getting ready
How to do it...
How it works...
Defining same-page conditional fields
Getting ready
How to do it...
How it works...
There's more...
Coming soon to Webform
Validating on the client side
Getting ready
How to do it...
How it works...
There's more...
Support for Webform Validation module
Importing submissions
Getting ready
How to do it...
How it works...
There's more...
Separators and delimiters
Using field form keys instead of field names
Mandatory fields and data formats
Updating existing submissions
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Table of Contents
Next
Next Chapter
Drupal 7 Webform Cookbook
Drupal 7 Webform Cookbook
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset