In http://alanstorm.com/magento_system_configuration_in_depth_tutorial @AlanStorm gives a very good tutorial for system configuration.
He also explains how to use a <depends> tag to make a field show only when a specific value is set in another field.
My Q is how can I make fieldB visible if field A has either value V1 or V2. and are there any other options with the <depends> ?
Also If someone knows where in magento's code this is implemented I would also like to have a look at the code myself.
Thanks
There is a better way, but you will need to override the core files
Override the method under the following file app\code\core\Mage\Adminhtml\Block\Widget\Form\Element\Dependence.php
On the app\code\core\Mage\Adminhtml\Block\System\Config\Form.php Modify the method initFields
Modify the javascript file js\mage\adminhtml\form.js
Use the following syntax for multiple values dependency on your xml