Closed (fixed)
Project:
Forms (obsolete)
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 May 2007 at 13:58 UTC
Updated:
22 Mar 2008 at 06:51 UTC
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.
| Comment | File | Size | Author |
|---|---|---|---|
| forms.module_3.patch | 908 bytes | dllh |
Comments
Comment #1
drupalegg commentedWhen 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!
Comment #2
quicksketchForms and survey modules are no longer being maintained, use Webform module instead.
---Closing down issue queue of survey module---