Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

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