I am trying to create a new block type in manage content tab of Panles IPE. I have extended BlockBase class and implemented blockForm method. I have added AJAX in this form and when blocks are being placed from category of my block these blocks appear on the page but when I reload the page blocks doesn't appear.

Any idea what state is missing when trying to add AJAX dependent fields in blockForm with panels IPE.

Comments

neelam.chaudhary created an issue. See original summary.

neelam.chaudhary’s picture

Issue summary: View changes
samuel.mortenson’s picture

Could you try out the patch I just posted to #2875425: Complex Block Plugin forms lead to incorrect temp store IDs in PanelsIPEBlockPluginForm? I'm wondering if we're running into the same issue.

neelam.chaudhary’s picture

Thanks samuel.
It worked for me after re-rolling. It was the same issue as you have posted in https://www.drupal.org/node/2875425.

neelam.chaudhary’s picture

I am facing another issue when trying to embed entity form in panels_ipe block form, its giving "An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports." Any idea how this can be resolved?

Thanks,

samuel.mortenson’s picture

I'm not sure @neelam.chaudhary, it depends on the block form. Which Block Plugin are you using?

neelam.chaudhary’s picture

@samuel I am extending BlockBase class and in blockForm method I have put entity form(e.g. node add form), I am trying to integrate this with panels_ipe. The entity form gets successfully rendered but on submit it shows "An unrecoverable error occurred. The uploaded file likely exceeded the maximum file size (2 MB) that this server supports." Any idea what could be the issue?

Thanks in advance.

semjuel’s picture

@neelam.chaudhary could you provide your code?

DamienMcKenna’s picture

Version: 8.x-4.0-beta1 » 8.x-4.x-dev

Does the problem happen with the latest 8.x-4.2 release?