Is there a way to alter an ajax callback from a form? I need to add a custom command after the existing one.

Or to alter the existing command defined in the js file?


1 Answer 1


I believe what you are looking for is hook_ajax_render_alter(&$commands)

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.