I've successfully created an Entity Reference View Widget on a content type. Checkboxes are shown, and selected nodes appear in the selected items column.
When I use Panels to display my node edit form and individually show each form (for example, "Field Form: Body" on the left and "Field Form: Node Selector" on the right), the widget fails to work. Checkbox will appear as usual, but when checked, they do not appear in the selected items column.
I've found if I add the "General Form" alongside my separate forms, it will work as normal. However, in the ultimate problem I have to solve, this technique will not work and does not solve the core issue.
Comments
Comment #1
gunwald CreditAttribution: gunwald commentedPlease have a look at this issue: http://drupal.org/node/1879776. Maybe it has the same cause. Would you have a look please, if the wrapper id in the HTML code are changed after the first AJAX action as described here: http://drupal.org/node/1879776#comment-6901184?
Comment #2
bojanz CreditAttribution: bojanz commentedPlease report back if this is still an issue in the 2.x branch. It is a big rewrite that aimed to resolve all known issues with the 1.x branch.
Comment #3
seycom CreditAttribution: seycom commentedI have same issue in 2.x branch, even worse. Nothing happens if "Add item" clicked.
Comment #4
seycom CreditAttribution: seycom commented#3 solved by changing to newer jQuery version.
Comment #5
seycom CreditAttribution: seycom commentedupdate:
#4 helps partially (jQuery 1.7, 1.8, 1.10 and 1.11). After pick one item it stops showing popup after clicking "Add item" button.
With jQuery 1.5 and 1.9 it is does not react on "Add item" button click at all.
No errors in javascript console.
Comment #6
seycom CreditAttribution: seycom commentedI found the "Add item" button somehow trying to save the node (new or existing node form in Panels page). For example, after clicking "Add item" several times I've got error messages about another required fields on any next page.
Comment #7
g.paluch CreditAttribution: g.paluch commentedI tried 7.x-2.0-rc6 and 7.x-2.x-dev problem still exist. Symptoms are similar to #6. When using Panels: adding nodes or terms give error "other terms are required" so node cannot be submit. Also only first selected term is added to the form. Without Panels node submits correctly.
Also changing jQuery didn't help (jQuery 1.7, 1.8, 1.10)
It is a great module if you need to reference a lot of entities - sadly not dancing well with Panels.
Comment #8
g.paluch CreditAttribution: g.paluch commentedComment #9
joncjordan CreditAttribution: joncjordan commentedg.paluch or seycom, did you ever figure this out? I'm having a similar where the add item button is trying to submit the node form. I get all these node errors when I navigate to another page. Any ideas? I'm not sure it's even limited to panels...