Does not work with #AJAX

Created on 3 March 2020, over 4 years ago
Updated 15 June 2024, 5 months ago

Modifying a form with a hook we are able to use #AJAX for default date
picker.

$form['field_date_of_birth']['widget'][0]['value']['#ajax'] = [
'callback' => 'people_form_alter_student_enable_legal_guardian',
'event' => 'change',
'progress' => [
'type' => 'throbber',
'message' => t('Verifying entry...'),
],
];
This will trigger the AJAX request and allow updating the form.

However, with the new type single_date_time AJAX is never triggered on change.

🐛 Bug report
Status

Fixed

Version

1.7

Component

Code

Created by

🇨🇷Costa Rica alemadlei

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