Set filter not working with emails

Answered
Luis asked on September 24, 2021

Hi, Im trying to use the setFilter function on an email column, but it doesn't seem to work with emails.
 
A simple way to reproduce the issue Im having is going to http://jsfiddle.net/flexmonster/mq32shu2/
and replace the value of the filters in lines 16 or 17 with an email.
 
The error shown is "Error in predefined filter or members have not been loaded yet: .com" 
 
Is there any way to escape the string? 
 
Thanks in advance.
 

1 answer

Public
Nadia Khodakivska Nadia Khodakivska Flexmonster September 27, 2021

Hello, Luis, 
 
Thank you for contacting us.
 
The error you have mentioned is just a message in the console. It notifies you, that you try to reach the non-existent members in the setFilter function. Also don't forget to use the column name in the Filter object, for example:
 

flexmonster.setFilter("Email", 
  {
    "members": [
      "email.[test1@gmail.com]",
      "email.[test2@gmail.com]"
    ]
  }
);

 
We hope it helps. You are welcome to write to us in case further questions arise.
 
Kind regards,
Nadia

Please login or Register to Submit Answer