Problem with Lookup Operator

I am having an issue with Sharepoint Lookup Fields not filtering when typing and I have a custom filter applied. Is this normal? My custom filter applies correctly. Here is my code which is run when the lookup is ready:

function hrFilter (field) {
    var v = 'H&R';
    field.filter = "CLCompanyCopy eq '" + encodeURIComponent(v) + "' and CLActive eq 'Active'";
    field.orderBy = {field: 'CLDispName', asc: true};
    field.useCustomFilterOnly = true;
    field.operator = "startsWith";
}

Dear @cwalter2,
You'll need to remove this line if you want the search to work:

field.useCustomFilterOnly = true;

1 Like