Would it be possible to make the rule condition 'Select A Webform' a multiple select rather than a single dropdown? We have some forms that are very similar to one another where it would be much easier to share rules rather than creating one rule per form, if possible.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | multiple-selection--rules-condition--1190482-3.patch | 1.81 KB | stborchert |
Comments
Comment #1
trevorbradley commentedJust hit this today and was about to post this myself. Subscribing
(Though if you need a quick solution I suspect it would be possible to evaluate PHP to do the same... Use the "Check a truth value" or the "Execute custom PHP code" condition and look at the $node data object to see if $node->title or $node->nid matches your form)
Comment #2
stborchertHi.
Sounds like a good idea. Any chance, you can create a patch that implements this?
Comment #3
stborchertHey.
Its been a long time but here is a patch for you to test.
@jonnyp, TrevorBradley: would you please test the patch and give feedback whether this works for you?
If so, this will be included in the next release.
Comment #4
stborchertUhm, thought this would be as simple as in 7.x, but this will not work in Drupal 6.
In D7 we have the data type "list" (needed for multiple selections like this) but in D6 this data type does not exists.
So the easiest way to check for multiple webforms would be to create an "or"-group in Rules conditions and add multiple conditions with one Webform each.