 readme  id readmetxt v 1126 20101231 121002 stborchert exp this module provides basic rules integration for webform requirements you need the following modules for a working feature webform http drupalorg project webform note be sure to install at version 6x3x or above rules http drupalorg project rules optional token http drupalorg project token installation copy the module files to you module directory and then enable it on the admin modules page after that you ll see two new events in the listing while creating a new rule usage using the submitted data in a rule is easy as you can access it either via php or using tokens after installing the tokenmodule php each rule reacting on an event thrown by webform rules gets 3 arguments to work with user the user object of the acting user the one who submitted the webform node the webform itself data the submitted webform data and the submission id to get the submission id use the components of the webform are stored using this structure array formkey array value submitted value component webform component given this structure you can access the value of a component called email with warning this is raw user input make sure to run this through checkplain before using it note some components for example grid return arrays so value isn t a simple string always modifying submitted data data is capable of intelligent saving meaning you can modify the submitted webform data with a rule and save it back to the submission to do so you ll need to assign the new value to the component and return the data with return array data data example guessing you have components called email and workdays set email to info examplecom by default data components email value info examplecom set workdays from tuesday to thursday by default component workdays is a set of checkboxes in this example data components workdays value array tuesday wednesday thursday token there are 8 predefined tokens for the webform data data data this one prints out all data submitted by the webform in the following format formkey label value data dataraw this one does exactly the same as data data with the difference to not clean up the values using checkplain data component title this is a dynamic token component is a placeholder for the components form key machine readable name example your webform has a component with the form key email so you would write data emailtitle to use the title label of this field data component value same as data component title but it returns the value instead of the title data component valuehtml this one does exactly the same as data component value with the difference that its output will be rendered as html data component valueraw this one does exactly the same as data component value with the difference to not clean up the value using checkplain this is raw user input so take care if you use this somewhere else data component display returns a combination of data component title and data component value done by module webform data component displayhtml this one does exactly the same as data component display with the difference that its output will be rendered as html condition webform rules adds a new condition to the rules configuration with this condition you can tell rules to react only on one specific webform by selecting its title author stefan borchert http drupalorg user 36942 http wwwundpaulde  