ERPNext.com Frappe Cloud Support Partners Foundation Frappe School

ERPNext set default filter condition

I have made a custom report in erpnext. In that, I can filter data by clicking add filter button. But I want to add that as a default filter. How can I fix it?

For more clarification here is the screenshot which I am expecting as default https://drive.google.com/file/d/1G8WGJiFKZMQfWR5Hqs8rwZxLrdGwwp6z/view?usp=sharing

Thanks in advance

1 Like

If it’s a Script report, you can refer to the below code to add a default value to the filter.

1 Like

How can this be done in a query report?
(Script report are not available as I am hosting on Frappe Cloud.)

Any suggestions for users who are not self-hosting? Ideally, this should be possible from the UI without the need to add a custom .js-script.
There is also an issue on this: https://github.com/frappe/erpnext/issues/25931