Custom Interactive Filter - Multiple options for lookup?

Vincent Alberty
Tera Contributor

Hello,

 

I have created a custom interactive filter following a community post (unsure the exact source as there is so many regarding this topic)

I would like to be able to add options to the search criteria.
as of now it searches for "Name Contains" on the location table, would like to be able to use the same "search box" for var1 contains ^OR var2 contains ^OR var3 contains if possible.

just not sure where to place it, tried a few ifs/elses/queries ..

lookup: (function is "searchTerm" for context here)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      if (searchTerm == ""){
        clearFilter();
  } else {
        filter_message.filter = "nameLIKE" + searchTerm; // here is where I would like to specify different criteria
      }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
Ultimately would like something like this, but not sure where to start.

VincentAlberty_0-1687438794210.png

any help appreciated.



1 REPLY 1

Charlotte
Tera Contributor

Hi Vincent,

did you figure this out?

I'm struggling with the same thing now.

Would be very very helpful if you can share your code please 🙂

Thanks!