Filter issues with cfdb-export-link
-
To produce a specific report I wrote a custom function to determine idf the record has an email. The function works fine with the cfdb-datatable but when I use the same filter in an cfdb-exportlink, it does not work. Here is the short code that works with the datatable:
[cfdb-datatable form="2015 Flag Database" edit="$_GET(edit)" show="FirstName,LastName,Email,HouseNumber,Street,UniqueID, Renew_status" trans="NaturalSortByMultiField($_GET(sortBy1),$_GET(sortBy2),$_GET(sortBy3),$_GET(sortBy4),$_GET(sortBy5))" filter="has_valid_email()&&Route>=$_GET(routeS)&&Route<=$_GET(routeE)&&Renew_status!=Renewed&&Renew_status!=Removed"Now here is the same code for the export-link:
[cfdb-export-link form="Flag Database" edit="$_GET(edit)" show="FirstName,LastName,Email,HouseNumber,Street,UniqueID, Renew_status" trans="NaturalSortByMultiField($_GET(sortBy1),$_GET(sortBy2),$_GET(sortBy3),$_GET(sortBy4),$_GET(sortBy5))" filter="has_valid_email()" filter="has_valid_email()&&Route>=$_GET(routeS)&&Route<=$_GET(routeE)&&Renew_status!=Renewed&&Renew_status!=Removed" ]When the export-link is executed it returns no data. If I remove the custom function in the filter it does return data.
https://ww.wp.xz.cn/plugins/contact-form-7-to-database-extension/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Filter issues with cfdb-export-link’ is closed to new replies.