Magento Forum

   
Date widget for fieldset
 
westymatt
Jr. Member
 
Total Posts:  4
Joined:  2008-05-22
 

I am adding to adminhtml

I have a instance of a varien_data_form and I am building a fieldset for it and I have all my other fields working fine, but I need to add a date field.  How can I get the date javascript object for it, I use date widget with the grid just fine.

$fieldset->addField('date''date', array(
                
'name' => 'date',
                
'label' => Mage::helper('xX')->__('Date'),
                
'title' => Mage::helper('xX')->__('Date'),
                
'required' => true,
                
'type' => 'date',
            )
        );

any help would be greatly appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top