cancel
Showing results for 
Search instead for 
Did you mean: 

Blox - Search multiple filters at once

rvickersevotix
9 - Travel Pro
9 - Travel Pro

I have the following code, but it is only searching on the second filter and not the first.

{
    "style": "",
    "script": "",
    "title": "",
    "titleStyle": [
        {
            "backgroundColor": "#093e52",
            "backgroundImage": "",
            "fontColor": "#093e52"
        }
    ],
    "showCarousel": true,
    "carouselAnimation": {
        "showButtons": false
    },
    "body": [
        {
            "type": "Container",
            "style": {
                "backgroundImage": "",
                "padding": "5px"
            },
            "items": [
                {
                    "spacing": "default",
                    "type": "TextBlock",
                    "horizontalAlignment": "center",
                    "size": "medium",
                    "weight": "bold",
                    "text": "Search Person Name",
                    "color": ""
                },
                {
                    "spacing": "default",
                    "type": "TextBlock",
                    "horizontalAlignment": "center",
                    "size": "supersmall",
                    "weight": "bold",
                    "text": "This filter will show Persons matching the names searched",
                    "color": ""
                },
                {
                    "spacing": "",
                    "type": "Input.Text",
                    "id": "data.filters[0].filterJaql.contains",
                    "placeholder": "Type in the search phrase here",
                    "style": {
                        "margin-top": 5,
                        "text-align": "center",
                        "margin-bottom": -40
                    }
                }
            ]
        }
    ],
    "actions": [
        {
            "type": "Filters",
            "title": "Search",
            "data": {
                "filters": [
                    {
                        "filterName": "Person Name (DSE)",
                        "filterJaql": {
                            "contains": ""
                            
                        }
                    },
                    {
                        "filterName": "Person Name (Training)",
                        "filterJaql": {
                            "contains": ""
                        }
                    }
                ]
            },
            "style": {
                "color": "#0B0B0B",
                "backgroundColor": "#DEE0E2"
            }
        },
        {
            "type": "Filters",
            "title": "Reset the Filter",
            "data": {
                "filters": [
                    {
                        "filterName": "Person Name (Training)",
                        "filterJaql": {
                            "explicit": false,
                            "multiSelection": true,
                            "all": true
                        },
                        "style": {
                            "backgroundColor": "#08445E"
                        }
                    },
                    {
                        "filterName": "Person Name (DSE)",
                        "filterJaql": {
                            "explicit": false,
                            "multiSelection": true,
                            "all": true
                        },
                        "style": {
                            "backgroundColor": "#08445E"
                        }
                    }
                ]
            },
            "style": {
                "color": "#0B0B0B",
                "backgroundColor": "#DEE0E2"
            }
        }
    ]
}

I want it to search both filters for the same value but I get the following:

Screenshot_206.png

Any ideas would be greatly welcomed.

0 REPLIES 0