Hi Max, give me some clues to implement double filtering method in CF7, i have
2 filter dropdown where I select the field to filter 'filtro1_sel' 'filtro2_sel'
and in text fields the value to compare 'valor1' 'valor2'
in CF7 I don't see how implement this code-function, because only guided where_conditions are possible and it seems is not posible set variable in the database_field
=$this->data['filtro2_sel'];
$where2 ="%".$this->data['valor2'[li]."%";
$where2[/li]="LIKE";
return [$where1,"AND",$where2];
}else{
return [$where1];
}
}[br]?>
2 filter dropdown where I select the field to filter 'filtro1_sel' 'filtro2_sel'
and in text fields the value to compare 'valor1' 'valor2'
in CF7 I don't see how implement this code-function, because only guided where_conditions are possible and it seems is not posible set variable in the database_field
if(!empty($this->data['filtro1_sel'[li]) && !empty($this->data['valor1'])){
$where1=[/li];
$where1[li]=$this->data['filtro1_sel'];
$where1[/li]="%".$this->data['valor1'[li]."%";
$where1[/li]="LIKE";
if(!empty($this->data['filtro2_sel'[li]) && !empty($this->data['valor2'])){
$where2=[/li];
$where2
$where2
$where2[/li]="LIKE";
return [$where1,"AND",$where2];
}else{
return [$where1];
}
}[br]?>