Closed (fixed)
Project:
Webform
Version:
6.x-3.6
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2011 at 17:03 UTC
Updated:
4 Mar 2011 at 17:01 UTC
I have a form which I need to display some instructional text above my checkboxes. I added my text to the description area for the component, but the text is appearing at the bottom of my checkboxes instead of on top. How do you get info to appear above the checkboxes?
Comments
Comment #1
quicksketchOverride the theme_webform_element() theme function in your theme and place the description above the element itself.
Comment #2
bzsim commentedIs it theme_webform_element_wrapper () instead? I am using the Theme Developer module to find where that function lives since I'm not too familiar with overriding functions, and the only function that is close to the name you provided above was theme_webform_element_wrapper.
I don't understand where to find the source of this function so that I can put it in my theme's template.php and modify it as needed.
Comment #3
quicksketchAh, yes you're correct. Sorry I was thinking about D6. theme_webform_element_wrapper() is where descriptions are printed out.
Comment #4
mlangfeld commentedI wanted to note that, after taking a short course in survey writing, I've learned that best practice is to include instructional or introductory information above each element. So, I wanted to request that this ability be considered as a change or addition to the webform module. Thanks for a great module, btw.
Comment #5
bzsim commentedFrom what I understand in reading about overriding theme functions, I have to first find the original source, then copy it into my theme's template.php, and name it something else. Is that correct? Where do I find the original source to copy from? Thanks!