<?php
class SMARTForm extends Zend_Dojo_Form
{
public function init()
{
$this->setMethod('post');
$this->setName('SMARTForm');
$vtb = new Zend_Dojo_Form_Element_ValidationTextBox('goalName');
$vtb->setLabel('Goal name:');
$vtb->setRequired(true);
$vtb->setPromptMessage('This is a unique tag used to help you
identify
this <br />specific goal when it is stored in Current Thinking.');
$this->addElement($vtb);
$dtb = new Zend_Dojo_Form_Element_DateTextBox('endDate');
$dtb->setLabel('Goal ahcievement date:');
$dtb->setRequired(true);
$dtb->setPromptMessage('This is the date by which your goal
will be
achieved');
$this->addElement($dtb);
}
}
?>
Is the form.
<?php
$this->dojo()->enable()->addStyleSheetModule('dijit.themes.tundra');
$this->headScript()->appendFile(
'/js/common.js',
'text/javascript'
);
?>
<div style="width: 80%; border: 1px solid #999; margin: 20px; padding: 10px
30px 10px 30px;">
<?php
echo $this->SMARTForm;
?>
</div>
Is the view.
The tooltip displays for the validationtextbox but not for datetextbox and
datetextbox extends validationtextbox so the setPromptMethod should work,
anyone any hints or tips?
--
View this message in context:
http://www.nabble.com/DateTextBox-setPromptMessage-not-showing-tooltip-tp24476262p24476262.html
Sent from the Zend Framework mailing list archive at Nabble.com.