When drupal_get_form('comment_form', ...) doesn't yield an AJAX-enabled form, it's usually because the necessary Drupal AJAX JavaScript files (like drupal.ajax.js and jquery.form.js) aren't being loaded or properly attached to the form elements. Simply printing the form array with print $form often bypasses Your Texas Benefits the process that adds these crucial scripts and their associated Drupal.settings. To fix this, ensure core AJAX libraries are added (e.g., via drupal_add_library('system', 'drupal.ajax')) and that the form is properly rendered using render($form) within Drupal's rendering pipeline. If you're loading the form via your own custom AJAX, you'll also need to explicitly call Drupal.attachBehaviors() on the newly inserted content in your JavaScript.