Adding more than 2 filter conditions on data grid

Has anyone else tried to add more than two filter conditions?

In this scenario, I have a variable attached to the initial sort, and this ends up showing in that array as:

{

"candidate_name": {

  "filterType": "text",

  "operator": "OR",

  "conditions": \[

    {

      "filterType": "text",

      "type": "contains",

      "filter": "mike"

    },

    {

      "filterType": "text",

      "type": "contains",

      "filter": "eric"

    }

  \]

}

Great, but if I have an action to add a 3rd condition, it refuses to update like the data grid cannot accept a 3rd condition.

Obviously, I want to be able to apply multiple filter conditions beyond just 2. Has anyone done this successfully?

Hi there, welcome back :waving_hand:

You should be able to use any amount of filters in your Datagrid.

have you checked our docs about the datagrid element?

We have a couple of examples on how to set up filters and sorts.

Hope this helps!

Hey Agustin - this would be multiple conditions for a single filter.

Weweb prevents additional conditions from being added once you already have 2. Do you have an example of a filter applied with more than 2 conditions?

Thanks for any help on this!

I wasn’t aware of this limitation.

What do you mean by “the datagrid cant accept a 3rd condition”? It doesnt apply it, only applies the first 2?

Are you sure you are constructing the third filter correctly?

I’ll ask our team to see if our datagrid is limited by 2 filters.