I'm having a hard time exposing fields from the user entity to rules conditions.
I'm trying to create a rule to verify certain profile fields are filled out when a user tries to create content of type "event". My rule fires when saving a node, has a condition to check the content type... and then I'm stuck. I can't seem to get the user entity fields to appear in the data selector for "field is empty". I've added conditions:
- site:current-user [entity is type = user]
- site:current-user [entity has field = field_profile_firstname]
But it still won't offer me any of the user entity fields in a "field has value" condition. Not even field_profile_firstname!
The goal functionality here is that these fields are only required if you want to create Event nodes. If you try to visit node/add/event and any of those fields are empty, it should redirect you to your user profile page with a message explaining what you need to fill out. Seems simple, if only I could get the conditions right!
Comments
Bueller? Any ideas on how to
Bueller? Any ideas on how to make profile fields required only for creating nodes of a certain content type?