It could be very handy to add AJAX commands when chaging the country.
This patch makes this possible!

Right syntax will be:

<?php
function MYMODULE_checkout_addressfield_standard_widget_refresh_alter(&$commands, $form, $form_state) {
 
$commands[] = ajax_command_alert('it works!');
}
?>

Comments

jeff.maes’s picture

Assigned:jeff.maes» Unassigned
rszrama’s picture

Priority:Minor» Normal
Status:Needs review» Fixed

I was thinking the same exact thing when I committed #1299504: Address field tab focus gets lost during AJAX refresh earlier today. : )

I just added this with some documentation in addressfield.api.php.

Commit: http://drupalcode.org/project/addressfield.git/commitdiff/94dff7a

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.