0

I have a very long webform, more than 200 fields, where the description needs to go above the input/textarea and below the label, instead of below the input/textarea. I am using webform 7.4.x and I could tick the "Description Above Field" box in all the components, but this would take rather a long time! So instead I used theme_webform_element() and replaced the line:

$above = !empty($element['#webform_component']['extra']['description_above']);

with

$above = 1;

This now sets all the descriptions to go above the actual field and below the label. However, this affects all webforms on the site. Is there a way I can limit it to just the one webform? I would be happy to use a different method.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.