Submit button on edit form gets replaced by contact-forms submit-button

Created on 12 May 2023, about 2 years ago

Problem/Motivation

I added a contact form to my node (with paragraphs). On editing the node, the "Save"-Button for saving the node gets replaced by the attached contact-forms "Send message"-Button.
It has the same HTML-Markup (except the value), but it looses it's function and i can't save the node any more.

Steps to reproduce

Attach the cores contact form with paragraphs to a node and the button gets replaced:

Change the admin-theme to Claro and the buttons are there:

πŸ› Bug report
Status

Active

Component

User interface

Created by

πŸ‡©πŸ‡ͺGermany tfranz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @tfranz
  • πŸ‡¨πŸ‡­Switzerland yobottehg Basel

    Also run into this with embedded webforms -> Any workaround for this?

  • πŸ‡ΊπŸ‡ΈUnited States seoulpanda20

    Is anyone still having this issue?

    I'm unable to reproduce with the following versions:

    • Drupal Core: 11.0.1
    • Gin: 3.0.0-rc13
    • Paragraphs: 1.18.0

    If you have specific core and paragraphs versions you're running into issues with, I can help out. But I'd give upgrading Gin and Paragraphs a try (if possible).

  • Status changed to Closed: cannot reproduce 9 months ago
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich
  • πŸ‡¬πŸ‡§United Kingdom robcarr Perthshire, Scotland

    I've found the problem only exists when embedding forms into Layout Paragraphs, then the Save/Preview buttons on the node edit form is overridden. I only see the problem in Gin (normal behaviour if admin theme is switched to Claro), but it's also been raised as an issue in Layout Paragraphs module https://www.drupal.org/project/layout_paragraphs/issues/3516735 πŸ› Save/Submit button not working with form blocks in Edit page Active

    Expected node edit button:

    Node edit form in Gin with form embedded into node Layout Paragraphs field:

    The problem only occurs for nodes that have forms embedded into Layout Paragraphs fields. It does not occur if the form is embedded as a Block (eg, via Block Field module)

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    I have this issue exactly as Rob has laid it out. I use Layout Paragraphs. The issue happens when I have a block paragraph that holds a webform.

  • πŸ‡ΊπŸ‡ΈUnited States rraney

    To reproduce (as this was closed due to inability to reproduce):

    Drupal 10
    Create a block that holds a webform
    Install Layout Paragraphs
    Create a paragraph that can hold a block
    On a page using Layout paragraphs, add a block paragraph which holds the webform block
    Save the page

    This should reproduce the issue

  • πŸ‡¬πŸ‡§United Kingdom robcarr Perthshire, Scotland

    I updated the 'Steps to Reproduce' in the issue summary and re-opened the issue. Sorry if that's a problem, but the original issue's conditions were not accurately described, as it could not be reproduced.

    This may well become a standoff between Gin and Layout Paragraphs, but because the problem is only seen in Gin (and not in the default Claro admin theme), looking at the theme seems to be the best place to start.

Production build 0.71.5 2024