Closed (outdated)
Project:
Webform
Version:
7.x-4.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
1 May 2015 at 19:27 UTC
Updated:
23 Sep 2025 at 16:25 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
danchadwick commentedThis was never supported, which isn't to say that it couldn't be. That's assuming someone writes a patch and tests it on every possible component. And then there's the affect on tokens, including the [submissions:values] token.
Patches welcome.
Comment #2
j_s commentedAh, gotcha. I assumed it was supported since webform.module has a theme_webform_element() function that already has the functionality for case 'after' on line 3592 (probably copied in from Drupal's theme_form_element() function).
Comment #3
danchadwick commentedI'm going to close this as I don't anticipate a patch. But feel free to reopen with one.
Comment #4
j_s commentedAdding a patch here.
Comment #5
j_s commentedComment #6
pcate commentedI tested the patch if it worked fine. This is a nice option to have available.
Comment #7
danchadwick commentedSurprised that none the components need theming changes to make this work. @PCate: aby "worked fine", are you saying that you created one of every possible component, set them to after, and confirmed that they rendered correctly? What about tokens?
Comment #8
j_s commentedNicely, there's code already in Drupal/Webform for displaying the title after. It just needs to be added as an option. Attached an updated patch to account for line changes.
I tested on components Date, Email, File, Number, Select (including listbox, radio, checkboxes), Textarea, Textfield, and Time, which all worked fine. Drupal has code (defined in theme_form_element_label) to add the class 'option' when the label comes after, which removes bold and tries to inline the label.
Comment #9
liam morlandThanks for the patch. It would be great to get a test with this patch.
Comment #10
liam morlandDrupal 7 is no longer supported. If this applies to a supported version, please re-open.