Location is required error comes up when location is not required, and location is filled out

Created on 28 May 2024, 29 days ago

We are trying to use conditional fields to make the location fields required, only when a certain checkbox is set to false. That's not really working as advertised.

So I have custom code for a custom validation function, however, it now always says location is required. Even when I fill out the location fields, it says it's required.

error message: "Location is required."

$form['#attributes']['novalidate'] = 'novalidate';
$form['#validate'][] = 'module_name_validate';

πŸ› Bug report
Status

Active

Version

4.23

Component

Code

Created by

πŸ‡¦πŸ‡«Afghanistan drupalam

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

Comments & Activities

Production build 0.69.0 2024