Try ERPNext Buy Support Partners Foundation

Disable Filters in Script Report

Hi All,

I am creating a script report and i want to make my filters read-only or disable (filter is date picker), once it set.

Regards,
Vishakha
Thanks In Advance

Try this,
“fieldname”:“date”,
“label”: __(“Date”),
“fieldtype”: “Read Only”,
“default”: frappe.datetime.get_today()

1 Like

Hi If you want to do this on particular condition try below:

$(‘body’).find("[data-fieldname=your_fieldname]").val(frappe.boot.your_fieldname).prop(“disabled”,true)
report.trigger_refresh();