Hello,
I want to clear party value on change event of party type in general ledger report. So Please tell me if anyone have idea.
Regards,
Harsh Mehta
Hello,
I want to clear party value on change event of party type in general ledger report. So Please tell me if anyone have idea.
Regards,
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
frappe.query_report.filters_by_name.fieldname2.$input.val("");
});
},
"filters": [
// Your filters
]
}
replacing fieldname1
and fieldname2
with the real field names.
Thank you