Required fields prevent editing and saving of parent node

Created on 28 March 2023, over 1 year ago
Updated 31 January 2024, 10 months ago

Problem/Motivation

If you embed a Webform with required fields, the logic prevents you from saving the parent node or making edits (if you use something like Paragraphs module to add content to your page). You receive a notice that you must fill out required fields before proceeding.

Steps to reproduce

1. Create a Webform with required fields.
2. Embed the Webform in a text editor using the media button, and save the page.
3. Edit the page again and try to make changes/save the page. (you should be unable to save at this point)

Proposed resolution

Is there a way to "disable" the webform when it's embedded? (Make it more static/preview rather than a live Webform.)

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States azslay

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

Comments & Activities

  • Issue created by @azslay
  • 🇮🇳India Anjali Rathod

    Hi @azslay I tried to replicate your issue and failed to do so, for me the scenario provided by you works fine.
    I embedded the default contact webform which has all the fields as required. Then added a paragraph to the basic page content type and edited the node and entered the value for the same and was able to save the page with empty fields in webforms without any error message.
    Is there something that I missed here?

Production build 0.71.5 2024