- Issue created by @sandip.prajapati
- Status changed to Postponed: needs info
over 1 year ago 3:18am 8 July 2023 - 🇺🇸United States tr Cascadia
It says right there in the screenshot:
The data selector helps you drill down into the available data. To make entity fields appear in the data selector, you may have to use the condition 'Entity is of bundle'. More useful tips about data selection are available in the online documentation.
So, did you add a condition 'Entity is of bundle' to tell rules what fields are available? This is the same thing you have to do in Drupal 7.
- Status changed to Active
over 1 year ago 7:28am 10 July 2023 - 🇮🇳India sandip.prajapati
Thank you for the response.
I have added bundle condition and its works.
but after that I have added another condition Condition: User has a role(s)
at There I have selected the user field but getting the error: Expected a entity:user data type for context User but got a integer data type instead.Thanks
- 🇪🇸Spain budalokko Girona
I'd try removing the `.target_id` part. Is there in the dropdown anything like `.entity` as in this screenshot?
- Status changed to Fixed
over 1 year ago 5:53am 29 July 2023 - 🇺🇸United States tr Cascadia
According to #3 the initial question has been resolved.
Automatically closed - issue fixed for 2 weeks with no activity.
- Status changed to Fixed
2 months ago 4:17pm 13 September 2024 - 🇮🇳India maniesraj
Yes!
I am facing the same problem in D10, how to add custom field in data comparison on condition?
is there any other document like this for D10?