The following link helped me to change 2 elements from a form through AJAX callback, whitout having to return the whole $form
:
Is it possible to replace more than one form element (wrappers) triggered by only one #ajax trigger element?Is it possible to replace more than one form element (wrappers) triggered by only one #ajax trigger element?