$this -> addElement( 'multiselect', 'incentiveId', array(
'label' => '<h1>Please select energy topics of interest:</h1>',
'escape' => false,
'required' => true,
'multioptions' => array(
'5' => 'Energy Efficiency',
'6' => 'Wind Technology',
'7' => 'Geothermal System',
'8' => 'Solar Technology',
'9' => 'All'
),
'validators' => array(array('validator'=>'NotEmpty', true,
array('messages'=>array('isEmpty'=>'Please Select A Type Of Incentive')))),
'decorators' => array(
'ViewHelper',
'Errors',
array( 'HtmlTag', array( 'tag' => 'dd' ) ),
array( 'Label', array( 'tag' => 'dt', 'escape' => false) )
)
));
A pointer in the right direction would greatly be appreciated, since there don't seem to correct answers from websites.
Regards,
Thomas List
没有评论:
发表评论