We should add a required flag in the data

Created on 11 February 2016, almost 9 years ago
Updated 25 July 2024, 5 months ago

Problem/Motivation

We should add a is required flag in the data item, to validate if is empty or not, and also we should add validation in the confirm button.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Needs work

Version

1.0

Component

Core

Created by

πŸ‡ͺπŸ‡ΈSpain edurenye

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

Comments & Activities

Not all content is available!

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

  • πŸ‡ͺπŸ‡ΈSpain ajfernandez Spain

    Hello everyone.

    I am having the same need as @edurenye in a project. The user needs to know which fields are mandatory, and the translation work must be able to be validated by leaving optional fields empty, since it could happen that the user wants the content in a specific language to not have data in such fields.

    I am attaching here the updated patch to work with the latest stable version of the module (8.x-1.15).

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.2.x + Environment: PHP 8.1 & MariaDB 10.3.22
    last update 6 months ago
    110 pass, 6 fail
  • Issue was unassigned.
  • Status changed to Needs work 5 months ago
  • πŸ‡ΊπŸ‡¦Ukraine taraskorpach Lutsk πŸ‡ΊπŸ‡¦

    I have encountered a situation where the "body" field is not required and is empty in the original translation, but it is validated as mandatory at the reviewing stage.

    #9 works helped me.

    However, we need to add more tests to check the standard and required fields when submitting.

Production build 0.71.5 2024