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

gunwald’s picture

Please 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?

bojanz’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Please 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.

seycom’s picture

I have same issue in 2.x branch, even worse. Nothing happens if "Add item" clicked.

seycom’s picture

#3 solved by changing to newer jQuery version.

seycom’s picture

update:
#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.

seycom’s picture

I 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.

g.paluch’s picture

I 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.

g.paluch’s picture

Status: Postponed (maintainer needs more info) » Needs work
joncjordan’s picture

g.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...