I am using References dialog 7.x-1.0-alpha4 and Entity reference 7.x-1.0-rc3+1-dev. I need to use references dialog so that users can add entitities to reference from within another form, and this is working. However, when I try to set the selection handler to "Views: filter by an entity reference view" rather than a dialog I get the message, within the form, not as a popup, 'the selected selection handler is broken'. Simple works ok. With rc3 it produces an Ajax error, which I think corresponded to an earlier reported issue. I think rc2 had other critical errors. With rc1 there is only the option to have a simple selection handler. On my production site I am currently just sticking with rc1 for now.
I don't know if this is an issue with References dialog or entity reference. I am posting here because there seems to have been some selection handler issues with entity reference lately.
Comments
Comment #1
Tara1981 CreditAttribution: Tara1981 commentedHmmm... I added a nid to the fields in the "reference dialog search" view, cleared the cache, and tried again. This time the message changed to "No eligible views were found. Create a view with an Entity Reference display, or add such a display to an existing view."
I'm thinking (though not certain) this issue might be me misunderstanding what I am doing with references dialog. Sorry if I've wasted any time...
Comment #2
rsgracey CreditAttribution: rsgracey commentedWhooop! I think I figured it out! (I was in the same place as you.)
The Concept
The Entity Reference display works as a "select" builder. Once you've created a View that contains exactly the values you want to use as the selection, you then add it to the field you're going to be filtering (ultimately) in the View you want filtered.
My example: I'm building a calendar for speaking engagements. Every engagements has a speaker and a contact--both coming from the Person content type. My challenge was to be able to filter the engagements by speaker, using something besides a blank text field. I really wanted an autocomplete field, so that the user wouldn't have to type the names completely, but I also only wanted the "speakers" to come up as choices.
The Steps
Let me know if this was helpful, or whether I missed a step somewhere.
Comment #3
FiNeX CreditAttribution: FiNeX commentedEDIT: I've had a problem with the entityreference display, I've cleaned up the cache in order to fix it. Sorry for the noise.
Comment #4
Devin Carlson CreditAttribution: Devin Carlson commented