I created a custom field called racetime. The field works great for tracking a competitive time in content types. However, the field isn't showing up when I want to create a rule based on the field. When creating a rule, I select Data Comparison at Select the condition to add. When I select node, I do not see the field. I'm basically at a loss over how to resolve this. I've tried using hook_token_info, and hook_tokens, but I'm not sure that's the right path and if it is, really how to use these functions to include the field in rules. Any help pointing me in the right direction would be greatly appreciated.

Comments

WorldFallz’s picture

When you want to use a field in a rule you have to make the first condition 'entity has field' or something close to that.

robbertv’s picture

Thanks for the tip. However, when I did this, the field still does not appear when I try to add a second condition to do the data comparison, the field is still not available for me to select.