- Issue created by @drupalam
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';
Active
4.23
Code