Example for condition: list contains item

Created on 9 January 2025, 12 days ago

Hi!

The new condition in eca 2.0 is persumably really useful. Can you please provide an example how to use it in context with a multivalue entity reference field called "field_players" (referencing nodes)?

With the form build event: check whether the profile of the currently logged is in the list of node references or not (see attached model). displaying the messages shows correctly the profiles of the players and the profile of the currently logged in player profile. but the condition does not work correctly. What do i have to select as Method and value to lookup when i search for entity references?

Thanks for the info.

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

🇦🇹Austria coreteamvn

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

Comments & Activities

  • Issue created by @coreteamvn
  • 🇩🇪Germany jurgenhaas Gottmadingen

    I can't reproduce this problem. I've created a model which does something similar and works as expected. I would assume that your token [rebuild_entity:entity:field_gr_profiles_er] is wrong, that's probably just [rebuild_entity:field_gr_profiles_er]. But I would even use the form build entity action, why not just load the referenced parent from the comment entity?

Production build 0.71.5 2024