Hi All,
I am trying to add filters in metadata file while defining multiple attributes but not able to add more than one filter in one attribute, if i add more than one it takes the d last option..
For eg : I want to populate Country , then related State and City.
attribute 'cities',
:description => "Cities",
:required => "required",
:default => "",
:format => {
:help => 'All cities within one state',
:category => '1.Cities Details',
:order => 1
:form => {'field' => 'select', 'options_for_select' => [
['bangalore'], ['mysore'], ['hassan']]
},
:filter => {'all' => {'visible' => 'state:eq:karnataka'}}
}
suppose i want these option to appear even when state is equal to tamil nadu (just an example)
:form => {'field' => 'select', 'options_for_select' => [
['bangalore'], ['mysore'], ['hassan']]
},
:filter => {'all' => {'visible' => 'state:eq:karnataka'}},
:filter => {'all' => {'visible' => 'state:eq:tamilnadu'}}
}
how to proceed
Thanks..