Clear filter value On change Event


I want to clear party value on change event of party type in general ledger report. So Please tell me if anyone have idea.

Harsh Mehta

You can use something like this in the js file:

frappe.query_reports["Report Name"] = {
  "onload": function() {
    frappe.query_report.filters_by_name.fieldname1.$input.on("change", function() {
      // Clear filter
  "filters": [
     // Your filters

replacing fieldname1 and fieldname2 with the real field names.

1 Like

Thank you