Quickfilter --> select default setting

JtheBAB

New member
---------------------
DaDaBIK version 11.6-Elba platinum
PHP Version: 7.4.28
mysql version: 5.7.38
Web server: Apache
Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.64 Safari/537.36 Edg/101.0.1210.47
---------------------

Is it possible to define which search operator the quickfilter has as default? We need a lot contains but for that we need always to click and select this search operator.

Thanks
 

deep64blue

DaDaBIK Guru
Is it possible to define which search operator the quickfilter has as default?
For an individual field:-

Edit this App ->
Forms Configurator ->
select the field you want to change the default for
scroll down to Search operators: and change as required.

To set a default:-

Copy these from config.php to config_custom.php and set as desired:-

Code:
$autoconf['numeric_fields']['search_operators'] = 'is_equal/is_different/greater_than/less_than/greater_equal_than/less_equal_than/is_null/is_not_null/between';
$autoconf['date_fields']['search_operators'] = 'is_equal/is_different/greater_than/less_than/greater_equal_than/less_equal_than/is_null/is_not_null/between';
$autoconf['date_time_fields']['search_operators'] = 'is_equal/is_different/greater_than/less_than/greater_equal_than/less_equal_than/is_null/is_not_null/between';
$autoconf['textbox_fields']['search_operators'] = 'contains/doesnt_contain/is_equal/is_different/starts_with/ends_with/greater_than/less_than/is_null/is_not_null/is_empty/is_not_empty/between';
$autoconf['textarea_fields']['search_operators'] = 'contains/doesnt_contain/is_equal/is_different/starts_with/ends_with/greater_than/less_than/is_null/is_not_null/is_empty/is_not_empty/between';
$autoconf['select_single_fields']['search_operators'] = 'is_equal/is_different/is_null/is_not_null';
 
Top