#limit_validation_error reset form_state values in ajax request

Created on 28 June 2020, about 5 years ago
Updated 21 July 2023, almost 2 years ago

Problem/Motivation

When #limit_validation_error is set for an element (managed_file for example) the "handleErrorsWithLimitedValidation" function in Drupal\Core\Form\FormValidator will set form_state values to the limited validation fields only, this will prevent us from retrieving the values (fom_state->getValues()) in the form build.
In our case, we need to access the values in the formBuild to execute some logic and field dependencies using ajax.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
FormΒ  β†’

Last updated 2 days ago

Created by

πŸ‡―πŸ‡΄Jordan Anas_maw

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