Hi,
I have tried setting up webform components to show in the rules condition option, I have already created event by webform submitted.
but it is not available for the webform elements/components,
can someone help?
thank you
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1560308-3.jpg | 52.66 KB | stborchert |
Comments
Comment #1
stborchertTo use webform fields as condition values you have to use a PHP condition (unless someone writes a patch that allows selecting the fields directly).
Comment #2
boby_ui commentedcan you give an example to the snippet code, I don't really understand the code.
thank you
Comment #3
stborchert* install the module Devel
* add a condition "Execute custom PHP code" to you rule and insert
In my test I have a webform with two fields ("module_list": list of checkboxes; "other_modules": textfield) that results in this output while executing the rule:

Now I could use this code to check if "views" has been selected in my webform:
Comment #4
boby_ui commentedthank you! let me test that :)