Improved support of required properties

Created on 17 October 2022, about 2 years ago
Updated 3 October 2023, about 1 year ago

Problem/Motivation

When specifying pattern schema properties as required, the layout builder off canvas dialog form does not visually communicate which inputs are required (e.g. red asterisk as with Drupal field UI) nor is there any client side or server side required validation occurring.

Steps to reproduce

  1. Create a pattern schema with required property, e.g. "required": ["text"] to the example schema.
  2. Add pattern to a layout
  3. Observe the class required added to the input's label element within the page source
  4. Observe no visual required indicator
  5. Save form without input
  6. Observe no validation of missing required value

Proposed resolution

Add a theming rule for label.required to the Cygnet theme to add a visual indication for required fields.

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Feature request
Status

Fixed

Version

9.1

Component

Module Core

Created by

🇺🇸United States jasonawant New Orleans, USA

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.

Production build 0.71.5 2024