Custom Fields are missing in data selector

Created on 7 July 2023, over 1 year ago
Updated 13 September 2024, 3 months ago

Hi

I am using drupal 10 and installed the module version: https://www.drupal.org/project/rules/releases/8.x-3.x-dev as mentioned on the module page.
so matter when i created rules and time to create conditions I am facing issues. I have custom field in content type that is not showing me. you can check the screen shot.

It is very easy in drupal 7. in drupal 7 works fine then why not in drupal 10.

It is highly critical issues.
so please help.

Thanks

💬 Support request
Status

Fixed

Version

3.0

Component

Rules Core

Created by

🇮🇳India sandip.prajapati

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sandip.prajapati
  • Status changed to Postponed: needs info over 1 year ago
  • 🇺🇸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
  • 🇮🇳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
  • 🇺🇸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 3 months ago
  • 🇮🇳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?

    https://www.drupal.org/node/1300042

Production build 0.71.5 2024