0
上選擇下拉列表來更新下一個文本框,這是我的下拉列表:
$fieldset->addField('auto_play','select',
array('label'=>Mage::helper('attigo_slider')->__('Auto Play'),
'values'=>Mage::getModel('adminhtml/system_config_source_yesno')->toOptionArray(),
'name'=>'auto_play',
'value'=> $config['auto_play']));
現在我想基於上選擇的值我想根據在Magento
$fieldset->addField('delay', 'text',
array('label'=> Mage::helper('attigo_slider')->__('Delay Speed'),
'after_element_html'=>'<small>Work only if Auto play is set to "Yes"</small>',
'name'=>'delay','value'=> $config['delay']));
你可以在我的代碼中描述,b'use我是新的 –
@ParagDave,使用我編輯的答案來實現你的解決方案。 – liyakat
非常感謝你Liyakat。 –