Hi! I am trying to edit Add/Edit node form in Panels. I am not sure if it is problem with module or I miss something. So here is my configuration:
Source node type: Event
Field:
- Location (Get Locations module)

Destination node type: Basic Page
Fields:
- Entity Reference with Autofill Enable
- Location (linked to Event fields usual)

When I try to add new Basic Page and refer it to Event it works normally. But when I enable Add/Edit Form in Panels it is not working. Here is panels config:
Selection rules: Node type - Basic Page
Contexts: Node add form - Basic Page
Content (fields from Form tab)
- Entity Reference (Node add form)
- Location (Node add form)

After saving Entity reference field is working, but Location remains empty...

Comments

jgullstr’s picture

Hello Kolo,

I tested your config and you're right - the module does not work when using form fields in a panels page. The underlying reason seems to be that no form_build_id is not provided if you don't add the form submit buttons to the panel (If you add the submit buttons it should work, right?). The build id is needed by the ajax function fetching the referenced content. As I don't use Panels myself, I'm not familiar with its structure and patterns, so unfortunately I can't help you with a workaround.

I guess this is "Works as designed", but I'll leave the issue open for now.

Thanks for your report,
Josef

Kolo’s picture

Josef you are right! It was my fault. I forget to add a Submit button. ;)
Now everything work just fine!

Thank you,
Martin.

Kolo’s picture

Status: Active » Closed (works as designed)