7.5 Filters: how do I add "is any of" to the options for a field in a filter?

In Opportunities I would like to change the filter on assigned to from is/is not to is any of/is not any of.

Where would I go to change that definition?

thanks,
FrancescaS
Parents Reply Children
  • Will the filter 'is any of' be available for teams in the same release?
  • Hi Everyone,

    I Think , I got the answer for your Questions .

    Copy operators.php file (Location::: clients/base/filters/operators/operators.php) and create a custom file  and paste operators.php file  inside (Location :: custom/clients/base/filters/operators/operators.php).

    and  add  "require_once('clients/base/filters/operators/operators.php'); " in custom operators.php file and now you can change values based on your requirements

    Example:

    require_once('clients/base/filters/operators/operators.php');

    $viewdefs['base']['filter']['operators'] = array(

        'multienum' => array(

            '$contains' => 'LBL_OPERATOR_CONTAINS',

            '$not_contains' => 'LBL_OPERATOR_NOT_CONTAINS',

             '$in' => 'LBL_OPERATOR_CONTAINS',

            '$not_in' => 'LBL_OPERATOR_NOT_CONTAINS',

        ),

        'enum' => array(

            '$in' => 'LBL_OPERATOR_CONTAINS',

            '$not_in' => 'LBL_OPERATOR_NOT_CONTAINS',

        ),

        'varchar' => array(

            '$equals' => 'LBL_OPERATOR_MATCHES',

            '$starts' => 'LBL_OPERATOR_STARTS_WITH',

            '$in' => 'LBL_OPERATOR_CONTAINS',

            '$not_in' => 'LBL_OPERATOR_NOT_CONTAINS',

            '$contains' => 'LBL_OPERATOR_CONTAINS',

            '$not_contains' => 'LBL_OPERATOR_NOT_CONTAINS',

        ),

        'name' => array(

            '$equals' => 'LBL_OPERATOR_MATCHES',

            '$starts' => 'LBL_OPERATOR_STARTS_WITH',

            '$in' => 'LBL_OPERATOR_CONTAINS',

            '$not_in' => 'LBL_OPERATOR_NOT_CONTAINS',

            '$contains' => 'LBL_OPERATOR_CONTAINS',

            '$not_contains' => 'LBL_OPERATOR_NOT_CONTAINS',

        ),

    ......

    Finally, we can now navigate to Admin > Repair > Quick Repair and Rebuild

    now we can search for multiple related accounts on the contacts list view also.

    I did for

      'name' => array(

            '$equals' => 'LBL_OPERATOR_MATCHES',

            '$starts' => 'LBL_OPERATOR_STARTS_WITH',

            '$in' => 'LBL_OPERATOR_CONTAINS',

            '$not_in' => 'LBL_OPERATOR_NOT_CONTAINS',

            '$contains' => 'LBL_OPERATOR_CONTAINS',

            '$not_contains' => 'LBL_OPERATOR_NOT_CONTAINS',

        ),

    PFA

    filter.png

    I hope this helps!

    Thanks

    SK