Entity Reference from Users to their Registrations

Created on 17 May 2023, about 1 year ago
Updated 17 June 2023, about 1 year ago

Problem/Motivation

I cannot get a list of users that are registered to a node when my Entity Reference view is of type "User".

I would like to use this Entity Reference view to populate a dropdown on my content type to show a list of all users that have registered for that specific content ID. I'd like that field to be USER based, not REGISTRATION based.

Steps to reproduce

  1. Create a new view named Registered Users
  2. Under View Settings select "Show Users" sorted by unsorted. Save
  3. Click "Add" and select Entity Reference
  4. Under Format, Format: Entity Reference List, Settings, select the option for User: Name. Click Apply
  5. Under Advanced, Relationships, click Add
  6. Select User Registration (relate users to their registrations), Add and configure relationships, click "Require this relationship" and Apply
  7. No user names show. I believe this should however show all usernames that have registered for something

I am able to produce a Entity Reference view of type "Registration" and it does show a dropdown of usernames but that is when using "Show Registration" in step 2 above. I want this to work where step 2 above is "Show Users" so the actual user ID is the stored value on a custom field on my content type. Using "Show Registration" the registration ID is what is stored in my custom field.

I was able to create this type of view in Drupal 7, but cannot seem to recreate it with Drupal 9.

πŸ’¬ Support request
Status

Fixed

Version

3.0

Component

Registration Views

Created by

πŸ‡ΊπŸ‡ΈUnited States ladybug_3777

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

Comments & Activities

Production build 0.69.0 2024