Home » HTML » HTML_QuickForm » Bug #8763
Static elements does not have attributes
Details
| Request #8763 | Static elements does not have attributes |
|---|---|
| Submitted | 2006-09-22 07:53 UTC |
| From | michael at eurofeeds dot com |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | 5.1.2 |
| OS | Fedora Core 5 |
| Roadmaps | (Not assigned) |
Comments
[2006-09-22 07:53 UTC] michael at eurofeeds dot com
Description:
------------
There's no attributes parameter for element type 'static', and $form->updateElementAttr() does work on this type of element either.
Test script:
---------------
$form->addElement('static', 'aname', "alabel", "End of contract reached, please renew.");
Expected result:
----------------
For example:
$form->addElement('static', 'aname', "alabel", "End of contract reached, please renew.", array( 'style' => 'color: red');
Actual result:
--------------
To get around it I used:
$form->addElement('static', 'aname', "alabel", "End of contract reached, please renew.");
(Unless there's another method that I missed.)