1

You're never making it to your callback because you don't have your #ajax array defined correctly, callback should not be defined as a hashed key. Take a look at the Adding an AJAX event example on d.o. This should work: $form['content']['validate_client'] = [ '#type' => 'button', '#value' => $this->t('Validate Client'), '#ajax' => [ // ...


Only top voted, non community-wiki answers of a minimum length are eligible