Hello,
I would like to write a module to add the address fields to the registration page. I managed so far to add them to the form using the hook additionalCustomerFormFields.
I also managed to validate the new fields via validateCustomerFormFields, and access then via actionCustomerAccountAdd. However I don't know how to update the form when the country is changed (update the state field). I see that when I change the country, there is an ajax request to the server, but it is different from the similar request when adding a new address. I would like if possible to reuse the mechanism implemented when country changes when editing or adding an address.