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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dkinzer’s picture

Status: Active » Needs review
FileSize
1.66 KB

The following patch fixed the issue for me.

jschoder’s picture

@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.

dkinzer’s picture

Assigned: dkinzer » Unassigned
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