stuck with "Specify the fields value with PHP code"

Events happening in the community are now at Drupal community events on www.drupal.org.
demon326's picture

Hello all,

iam making a kind of automated notification system for my partners when a certain node type has been published...

The following text displays the setup:

IF
conditionCreated content is Review indent
AND
conditionCreated content is published indent
AND
conditionCreated content's field 'field_label' has value
DO
actionLoad content by id
actionSend a mail to an arbitrary mail address

Now i got stuck with the "Created content's field 'field_label' has value" option i need to add multiply valeus from the field itself... So lets say the field has the following values that can be chosen(only 1):
InsideOut Music
Superball Music
SPV
Niji Entertainment
Relapse Records

i want it so that i only need to make 1 rule for all of them, so if one of them is selected, i want the system to go on, but i don't know how, this because i got stuck..

Comments

OR condition!

itangalo's picture

If you can't just select multiple values right off, then one way of doing this is to use OR conditions:

IF
conditionCreated content is Review indent
AND
conditionCreated content is published indent
AND
  ORGROUP
  conditionCreated content's field 'field_label' has value X
  OR
  conditionCreated content's field 'field_label' has value Y
  OR
  conditionCreated content's field 'field_label' has value Z
  /ORGROUP
...

Here's a screencast that might help you on the way: http://nodeone.se/node/993

Good luck!
//Johan Falk
**
Check out NodeOne's Drupal Learning Library! 190+ screencasts and exercises, for Drupal introduction, advanced configuration, and coding. Creative Commons license!

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week