I want to add a custom price filed just like the price field which can be seen when we add new products.
I can add a field like this
$fieldset->addField('price', 'text', array(
'label' => Mage::helper('menu')->__('Price'),
'class' => 'required-entry',
'required' => true,
'name' => 'price',
));
But I don't know how to validate it to take only numeric values. Can anyone help me please?
Or is their any other field type in magento that takes only numeric value?