My case: I have the mass action for a selected products to make some math operations with a prices. At first step I have the "Change prices" action and the selecting on it gives me the mass actions with needed operation (+,-, * and so on).
$operations = Mage::getSingleton('op/operations')->getOptionArray();
array_unshift($operations, [ 'label' => '', 'value' => '' ]); $this->getMassactionBlock()->addItem('Change price', array( 'label' => Mage::helper('op')->__('Change price'), 'url' => $this->getUrl('*/*/massPrices', array( '_current' => true )), 'additional' => array( 'visibility' => array( 'name' => 'operations', 'type' => 'select', 'class' => 'required-entry', 'label' => Mage::helper('op')->__('Change price'), 'values' => $operations ) ) ));
But in order to make some math operations I need to get argument for user's input. To do this I try to repeat
getMassactionBlockfrom previous step with new label and
type=text. yes, it really gives me text input, but I'd like to get only after the second mass action (with math operations) will be selected.
Thx for help.