Closed (fixed)
Project:
Webform
Version:
6.x-2.8
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2009 at 15:50 UTC
Updated:
9 Feb 2010 at 20:44 UTC
I've always thought it was strange that the description for web form components goes under the field and not under the label. Ideally I'd like it to be like below. Would I have to theme this to make it happen or is there an easier way?
Thanks.
<div class="form-item" id="edit-submitted-email-wrapper">
<label for="edit-submitted-email">email: <span class="form-required" title="This field is required.">*</span></label>
<div class="description">Please check to make sure your email is correct. If you have mistyped your email address we will not be able to respond to you.</div>
<input maxlength="128" name="submitted[email]" id="edit-submitted-email" size="60" value="" class="form-text required" type="text">
</div>
Comments
Comment #1
quicksketchYes you'd have to theme the form elements to do this. Unfortunately Webform does not have a separate theme function for it's form elements, so this change would have to be side-wide. You can make this change by overridding theme_form_element().
Comment #2
quicksketch