20110425-dtpwji17ukckriyi74yebhq6hq.png
20110425-q3mqq7w4nign5c11cx8ig3huif.png
20110425-g1h19tb7qnf5ndgtk3kh4es5jr.png

This project is not covered by Drupal’s security advisory policy.

Rules WebForm Submitted adds a Condition to Rules that allows you to test to see if a specific webform node has been submitted by the current user. This is useful for restricting some content on your site to users who have completed a webform. For example, you may want to "require registration" of certain content before making it available to collect sales leads, etc.

Note: This module is similar to Webform Rules in that it supports integration between Webform and Rules, but different in that Webform Rules supports the Event "Webform Submitted", while Rules Webform Submitted provides a Condition which is typically triggered by a Node Event.

To set up this functionality,

  1. Download and enable Rules, Webform, and Rules WebForm Submitted (this module)
  2. Create a new Rule named "Require Registration To View Content" (for example)
  3. Add the Node Event "Content is about to be viewed".
  4. Add a condition for the type of node you want to restrict access on.
  5. Add the condition "Webform has been submitted" and choose the Webform that you want the user to fill out before viewing content.
  6. Click the "Negate" option to cause the rule to trigger if the webform has NOT been submitted
  7. Save the "Webform has been submitted" condition.
  8. Click Add an action
  9. Choose Page redirect for the action type and click Next.
  10. Under "To" enter the URL Alias or Path to the webform to authenticate against
  11. After the "?" enter destination=node/[node:nid] to cause the webform to redirect to the target content node after being submitted.

This will have the effect of displaying a webform for content for which the user has not submitted the webform, and will forward to the content after submitting the webform.

Project sponsored TMA+Peritus

Project information

Releases