Change the default filters in link field

How I can change the default filters on a Lonk filed Such as “Account Paid To” in Paymenet EntryScreenShoot

1 Like

This issue is giving me trouble in payment form, please let me also know!

Add this code to client scrip @ payment entry

frappe.ui.form.on('Payment Entry', {
	refresh(frm) {
    frm.set_query("paid_to", function() {
        return {
            "filters": {
                "account_type": "",
            }
        };
    });	}
});
frappe.ui.form.on('Payment Entry', {
	refresh(frm) {
    frm.set_query("paid_from", function() {
        return {
            "filters": {
                "account_type": "",
            }
        };
    });	}
});

@Mahmoud_Esmail Please were you able to resolve this issue?

If yes how did you go about it?