Filtering related schemas on reference fields

Hello,

I have an entity/schema defined called Users, which is a list of Users. Each user has a role field. Now I have created another schema called Groups and I would like to create a field which references Users but only those who are admins (so role=‘Admin’).

Is this possible to create the reference field in the Groups schema in such a way that when the users then create a new Group and want to select a related User on that field they will only be able to select those who are admins? So basically is it possible to apply a filter to the referenced schema?

The only option at the moment are custom editors.

There is a sample for that: https://github.com/Squidex/squidex/blob/master/backend/src/Squidex/wwwroot/scripts/editor-references.html

1 Like