Closed (duplicate)
Project:
Entity reference
Version:
7.x-1.0-rc3
Component:
User interface
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2012 at 09:33 UTC
Updated:
8 Feb 2013 at 22:53 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedThis text should have read "implemented on top of the Options module".
Comment #2
Pierre_G commentedThanks for your answer.
Well, I have the Options module enabled, it's required by the List module.
Where/How then can I create a select form element and specify Entity Reference options like the autocomplete widget ?
Comment #3
Pierre_G commentedComment #4
rbruhn commentedI would be interested in knowing how to implement a select list as well. I posted what I needed before on RC1 here: http://drupal.org/node/1551166
I ended up altering the form field myself within my module, but when I updated to RC3 the form throws the error:
There are no entities matching "51"
The id 51 is related to the user id being select in the select list. Obviously something changed in code that I'm missing. Rather than hack it like I am, I'd rather use a built in solution if there is one.
Comment #5
damien tournoud commentedWhen you have the Options module enabled, you should see a "Select list" widget and a "Check boxes / radio buttons".
I'm a little bit baffled how this is not clear.
Comment #6
Pierre_G commentedWell, I'm baffled too seeing your screenshot.
I only got the two autocomplete widgets, not the list/checkbox.
But I just tried a fresh install of D7 just just CTools, Entity API and Entity Ref, and indeed I've got the list widget!
Maybe a conflict with another module ? I'll try to find out.
Comment #7
Pierre_G commentedFound it :p
When I've the Exif module disabled, List and Checkbox widgets appear.
Comment #8
damien tournoud commentedNice detective work :)
See #1529282: Incorrect hook_field_widget_info_alter() breaks existing/new unrelated fields.
Comment #9
Pierre_G commentedahah thanks, too bad I couldn't find any issue in exif issues... glad you did :)
I'm gonna check with them.
thanks again.
Comment #10
rbruhn commented@Pierre_G
Thank you for tracking that down.
Comment #11
Exploratus commentedHappening to me also.