Total Posts: 10
<depends/> allows you specify that your configuration field should only be displayed when another confgiruation field in the same group has a specific value.
For example, the Paypal Express System Configuration has the following select defined.
<label>Countries Payment Applicable From</label>
You’ll notice the
This is telling the system that if the <allowspecific> field (defined with the following)
<label>Payment Applicable From</label>
While it appears to work with any fields that send out on onchange event, the core Magento system only uses this function where the parent field is a select. If you’re paranoid about forward compatibility, I’d apply the same restriction to your own System Configuration fields, as it’s hard to tell where the core Magento team may take this feature in the future.
link of tut http://alanstorm.com/magento_system_configuration_in_depth_tutorial
I dont think this will work in my situation, because as I understood from this tutorial, ill have to make so many multiselects as there are shipping methods and then point this <depends> to every multiselect for every method.
Maybe this will be clearer - I need to make multiselects with customer groups and <label> for multiselect should be shipping methods title. So, for every enabled shipping method there should be multiselect field with customer groups, where <label> will be shipping method. With enabled shipping method i mean methods, which are enabled in system->configuration->sales->shipping methods