I'm using the Entity has field condition for the After saving new content event, to make sure the rule only fires when the newly created nodes contain the field, which is part of a custom content type.

I want to use the Data comparison condition, but the field doesn't show up in the data selector.

How can I compare the field with a value?

  • I'd guess it's the same as Drupal 7: drupal.stackexchange.com/questions/170224/…. Worth a look at least – Clive Feb 16 '17 at 10:12
  • Sorry to disagree with the prior comment from @Clive (it's not the same) ... My guess is that you'll now better understand why the most recent D8 release of Rules has an "alfa" qualifier. read more ... ... It would help however to clarify your question if you'd include the rule you have so far in your actual question – Pierre.Vriens Feb 16 '17 at 10:18
  • The code for it has been in the 8.x codebase for 3 years so probably worth trying @J.Dough drupal.org/node/2281107 – Clive Feb 16 '17 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.