Feeds

Author

Nov 13 2017
Nov 13

13 November 2017

The Webform Mass Email module has now been ported to Drupal 8. Time to get emailing :)

The Webform module has long been a powerhouse for Drupal site builders, providing a flexible solution to one of the central problems of web development: collecting user data, storing it and notifying users when content is added. the Webform module has been extended in many directions, supporting ancillary workflows and use cases.

One such use case is sending a mass email to all subscribers to a Webform. This can be handy for when users are signing up to an event or have registered their interest in a topic. The Webform Mass Email module fills this gap.

The module works as follows

When installed, Webform Mass Email module adds a new sub-tab called "Mass Email" under all Webform's "Results" tab (next to "Submissions", "Download" and "Clear") and one settings sub-tab called "Mass Emails" under global Webform "Configuration" tab (next to "Exporters", "Libraries" and "Advanced").

  1. Site builder navigates to the "Mass Emails" tab and set base module settings once.
    • "Cron time" - How much time is being spent per cron run (in seconds).
    • "Allow sending as HTML" - If checked, all emails are processed as HTML formatted.
    • "Log emails" - Should the emails be logged to the system log at admin/reports/dblog?
  2. The site builder can then assign "Send Webform Mass Email" permission for roles which are able to send mass emails.
  3. Anyone with this permission can then navigate to the "Mass Email" sub-tab of any Webform and send messages.
    • "Email field" - The field that is going to be used as the recipient's email address.
    • "Subject" - Message subject for your email.
    • "Body" - Message text for your email.
  4. After you hit the "Send emails" button, messages are inserted into queue and sent when cron is running.

The module has now been ported to Drupal 8 and is being supported by the team at Morpht. Check it out and let us know what you think.
 

Nov 07 2017
Nov 07

7 November 2017

The Webform Invitation module has now been ported to Drupal 8.

Most of us know how powerful the Webform module is in Drupal, allowing us to collect and retain data from users. It has been extended in many ways and is a vital part of most Drupal websites.

The Webform Invitation module extends Webform and allows submissions to be limited by invitation through the entry of a code which validates the submitted against a list of known codes. This pattern can be used to apply “coupons” and handle any situation where you need to limit the users who are able to submit.

All generated codes can be downloaded as XLS spreadsheet with direct links leading to the Webform URL with "code" parameter inside, so it's then automatically filled into "Invitation Code" text field - you can use this spreadsheet for any of your favorite mass emailing service.

The module works as follows

When installed, Webform Invitation module adds a new tab to all Webforms called "Invitation" (next to "View", "Test", "Results" and "Build"). There are also four sub-tabs called "Settings" (default action), "List codes", "Generate", and "Download".

  1. Site builder defines new Webform or update existing one, where invitations are needed.
  2. The Site builder navigates to the "Invitation" tab and enables invitations for the current Webform.
    • This option is adding new "webform_invitation_code" text field element on the first position inside "Build" section and you can adapt the position or other element details as required.
    • When option is disabled, the "webform_invitation_code" element is removed from any position.
  3. Then the Webform is locked for any submission, because there are no invitation codes available and site builder needs to generate some. It's possible by navigating to "Generate" sub-tab and setting number of generated codes and their type (MD5 or custom).
    • "Number of codes to generate" is 25 by default, but you can increase this number as needed.
    • "Type of tokens" is set to MD5 hash of 32 characters length, but you can switch to custom token and set their length and character sets to be used.
    • After clicking on "Generate", you are redirected to "List codes" sub-tab and you are ready for sending these invitation codes out and users are able to fill submissions. You can monitor if specific codes were used and for which submission.
    • The site builder can generate new codes of different type any time.
  4. If site builder wants to export all unused invitation codes, he can do it on "Download" sub-tab.
    • It provides XLS spreadsheet with direct links to the Webform URL with "code" parameter inside.
    • This code is automatically filled into "Invitation Code" text field.

The Webform Invitation module is supported by the team at Morpht. Give it a try and let us know what you think.
 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web