I had a need to include arbitrary html within a form (e.g. descriptive text or images that did not fit well shoehorned into a form description area). So I patched the module to add an "html" field type that adds whatever is entered in the explanation field to the form. Thought it might be useful to add to the module for others, so if you want it, here it is.

CommentFileSizeAuthor
forms.module_3.patch908 bytesdllh

Comments

drupalegg’s picture

When I used this with Survey module, I made this to be:

case 'html':
$real_field = array(
'#type' => 'item',
'#value' => $field->explanation
);
break;

It works great!
Thank you!

quicksketch’s picture

Status: Needs review » Closed (fixed)

Forms and survey modules are no longer being maintained, use Webform module instead.

---Closing down issue queue of survey module---