I have an node form which I am trying to submit via ajax using

$form['actions']['submit']['#ajax'] = [
      'callback' => ':submit'

The form is submitting properly and the node is getting saved/updated. But on submission I need to display the default message provided on the default submit handler. Also, the validation is missing as well.

How can I achieve the whole node save process along with the validations and messages via ajax?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.