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

Right syntax will be:

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


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.


Status:Fixed» Closed (fixed)

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