Download & Extend

JS for reloading province field when changing country field breaks when form address fields not themed in default format.

Project:Addresses
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community

Issue Summary

Sometimes we may need to theme the node_add_form addresses field in a way different than normal. I was using the cck addresses field. And had its input form field themed and this broke the JS for changing the province.

The reason the JS breaks is that it's dependent on the order of these fields.

Changing the JS to break this dependency fixes the issue.

Comments

#1

Status:active» needs review

The following patch fixed the issue for me.

AttachmentSize
addresses-re-order-fields-ok-1096986.patch 1.66 KB

#2

@dkinzer: Thank you for that code-change. It now works again on my system.

In my case I use a little more complicated theming of form-elements and would be grateful if the replacing select-field would be rendered by the normal theming-functions.

#3

Assigned to:dkinzer» Anonymous
Status:needs review» reviewed & tested by the community

@jschoder: I'm glad the patch worked for you.

As for your other issue it's really about overriding the node form theme, node_form_template module should help with that (@see http://drupal.org/project/node_form_template).

Cheers,

D

nobody click here