ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

How to set desk shortcut filter with OR condition

Hello,

I want to set a shortcut filter with an OR condition.

For example:

{
"status": "Open" OR "Cancelled"
}

Which is the correct way to do it? I’m trying different things and I can’t get working.

Also, I can’t find it in frappe documentation.

Thank you very much.

Hey @restos99 you can use format like this to get it done…

{
    "status": ["IN" , ["Need Verification","Active"]]
}

I think it will work, just give it a try :grin:

Thank you very much for your help.

Great,
How to use child table field in filter condition

u can mentioned two conditions
status = open
status = cancelled…

and this can also be mentioned in one line too…