Skip saving empty paragraphs for certain types

Created on 11 May 2017, about 7 years ago
Updated 11 June 2024, 17 days ago

Problem/Motivation

If the paragraphs field is not required but it's widget has a default paragraph type selected this results in the required fields from of the paragraph to still be validated - and if empty the validation for the host entity fails.

If there are none required fields, the empty paragraph item is still saved. This could cause labels with empty items displayes

Another use case can be found in paragraphs collection where we have a paragraph type "separator" that does its job without having any field filled. So it needs to save although all fields are empty.

Proposed resolution

Add an option to skip save if all fields are empty on each paragraph type.

Required fields would still trigger validation.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India saranya ashokkumar

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024