- Issue created by @rraney
In Drupal 10, using this module, I'm running into issues on Layout Paragraphs node edit pages. For example, the Edit page for a Basic Page. The submit/save page either disappears or does not work correctly when I have a webform content block or a block view with exposed filters, using a block display paragraph type.
With a webform, the form is rendered in the edit page. It shows the submit button and is an active webform, even in the edit page. Technically, it's a
within a
which is probably problematic.
I don't know if it's Drupal core or Layout Paragraphs that puts the entire edit form in a
tag. Maybe there's no workaround for this. As for the display of blocks, I have been able to workaround the issue by going into the Block Layout page, selecting Configure for the block, then preventing the display of the form on the node/123/edit page. This is just a workaround and I think a more reasonable solution must exist.
Ultimately, I think the browser doesn't handle a form within a form and conflicting submit actions.
Using Drupal 10, create a webform. Allow it to be rendered as a block, then go to Block Layout. Configure a new block and assign this form. Save the block, save the page.
Go to a Layouts Paragraph-enabled node. Edit the node. Add a block paragraph and display the block which has the webform. Click Save for the paragraph edit form, then Save for the page. You may run into problems with the Save function for the page. It also may not even be displayed.
Perhaps the edit form could be put into some other type of HTML element, or better yet, figure out a way to allow placeholders of the forms within Layout Paragraphs.
Active
2.1
Code