drupal 7 - Creating rule based on field collection field -


what want trigger action when 1 of fields on field collection changed value. example, 'campaign' node has field collection field called 'status' status list containing 3 options; 'onboard', 'live', or 'dead'. when field on campaign node field collection set 'live' want trigger action.

so start saying:

events: after node updated

conditions: bit struggling work out cannot data comparison particular field.

action: send email

how can achieve this?

you may work using approach similar mentioned in comment # 4 of issue # 1315566, i.e.:

  1. create "entity has field" condition on rule.
  2. for "data selector," select entity contains field (in case, node). "field" value, select machine name of field collection in question.
  3. go action. using "data selector" mode, should able drill down through entity in question values contained within field collection. in case, end result "node:field-enrollee:field-school-district:0:tid"

in case try mentioned in step 3 above rules condition (instead of rules action). add rules condition "entity has field" (prior being able use anywhere later on in rule), refers field collection field.

for way more details this, refer "how iterate on field collection items in rules module?" (which includes rule in export format may want experiment with, if adapt machine names of used fields).


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -