How to enable #ajax callback

Created on 12 April 2017, almost 8 years ago
Updated 11 June 2024, 8 months ago

Thanks for this wonderful module!

Is it possible to have a #ajax callback implemented. I have tried the following but the callback is not fired after a select change:

  $form['field_my_field']['und']['#ajax'] = array(
    'callback' => 'my_ajax_callback',
    'wrapper' => 'my-wrapper',
    'effect' => 'fade',
  );
  $form['field_my_field']['#ajax'] = array(
    'callback' => 'my_ajax_callback',
    'wrapper' => 'my-wrapper',
    'effect' => 'fade',
  );

Cheers!

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

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.

No activities found.

Production build 0.71.5 2024