Tobias Xy, I'm loving 7.x-2.x-dev and got it working almost perfectly for my site except for just one thing. Here's how to reproduce the problem:
1) Create a field called "Controller" of field type "Boolean", widget "Single on/off checkbox".
2) Create a field called "Controlled" of field type "Entity Reference", widget "Autocomplete", and make it visible when "Controller" is set to unchecked.
3) Create new content by having "Controller" unchecked, which makes "Controlled" visible, and then check "Controller". You'll see that no matter what you do, "Controlled" does NOT disappear like it's supposed to.
In the second step, if you change "Autocomplete" to "Select list" and then go through the third step again and check "Controller", then everything works perfectly and "Controlled" disappears. So can you make it work for "Autocomplete" too? Thanks in advance.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | support-for-entityreference-2123663-4.patch | 2.48 KB | Tobias Xy |
Comments
Comment #1
Tobias Xy commentedComment #2
hass commentedI'm also using a lot of entity references with autocomplete. If that is really broken that's a heavy showstopper. I wouldn't wonder if core autocompletes may also broken.
Comment #3
Tobias Xy commentedThe appended patch will add support for entityreference.
Unfortunately visible/invisible won't work for the Autocomplete widget, because the #id isn't rendered on the top level,
but "Autocomplete (Tags style)" widget should work with visibility states too.
Comment #4
Tobias Xy commentedNew patch.
Comment #6
Tobias Xy commented