Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | addresses-re-order-fields-ok-1096986.patch | 1.66 KB | dkinzer |
Comments
Comment #1
dkinzer CreditAttribution: dkinzer commentedThe following patch fixed the issue for me.
Comment #2
jschoder CreditAttribution: jschoder commented@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.
Comment #3
dkinzer CreditAttribution: dkinzer commented@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