Total Posts: 110
In the function _prepareForm() I’m creating a form i’m using in the admin page on a custome module I have been writing, Im using addField to add text fields however now need to add a date field....
I changed the type from text to date and got an error about missing format .. so added format to the array of properties and guessed at a format and it now doesnt error however a normal text field is displayed.. heres what I have got ...
$fieldset->addField('ends', 'date', array(
'name' => 'ends',
'title' => Mage::helper('mymod')->__('End Date'),
'label' => Mage::helper('mymod')->__('End Date'),
'maxlength' => '50',
'format' => 'YYYY-MM-DD',
'required' => true,
does anyone know how to bring up the date picker for this field instead of a text field? I browsed the php doc for an hour and didnt find a list of options for the addField function.
many thanks all