I want to pass the value from one view to another view's filter I have view 'filter' which is having the select box with taxonomy list as option 'category_taxonomy' having fruits,vegetables. I want to pass the taxonomy value to next view in on change event to filter the value in view 2.My both 'view1' and 'view2' are in same tpl.If I select the value from view1 I wat to send the argument to the second view and and filter the result and then reload only the second view(view2).
$vocabulary = taxonomy_vocabulary_machine_name_load('service_line');
$terms = entity_load('taxonomy_term', FALSE, array('vid' => $vocabulary->vid));
// print_r($terms);
echo '<select class="filter"><option value="">select</option>';
foreach($terms as $data){
echo '<option value='.$data -> name.'>'. $data -> name.'</option>';
}
echo '</select>';