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.
This might be an pure oversight on my behalf, but is there a way to reorder fields in composite elements like the composite-address?
I need to put the postal_code before the city, because that is proper use of these two fields here in Germany.
When using flexbox display, I can overwrite the webform-composite-address.html.twig Template - but I am not sure whether that is the intended way to do this if flexbox is active.
And what to do, if Flexbox is not to be used?
Thanks for any insight,
Arngrim
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedYou can still override the output without flexbox by replacing the
{{ content }}
with the individual elements.templates/webform-composite-address.html.twig
Does this make sense?
You could also alter the element weights via
HOOK_preprocess_webform_composite_address()
.Comment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commented