Widget value validation

Created on 18 April 2023, over 1 year ago
Updated 25 May 2023, over 1 year ago

Problem/Motivation

We must have a way to validate the widget value before saving.

Proposed resolution

Provide PinWidgetsForm::validateForm()
It will also fix the issue about required elements.

✨ Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine HitchShock Ukraine

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

Comments & Activities

  • Issue created by @HitchShock
  • @hitchshock opened merge request.
  • Status changed to Needs review over 1 year ago
  • πŸ‡ΊπŸ‡¦Ukraine HitchShock Ukraine

    Added a new function to allow validation for the widget element. Now we can use $form_state->setErrorByName() or $form_state->setError() in that function.
    Also a new solution fixed behavior for the required fields.

  • Issue was unassigned.
  • πŸ‡ΊπŸ‡¦Ukraine HitchShock Ukraine
Production build 0.71.5 2024