Download & Extend

Ability to add arbitrary HTML

Project:Forms
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSize
forms.module_3.patch908 bytes

Comments

#1

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!

#2

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---