How to show more items in linked feilds

Screenshot 2022-11-04 125532

i link this feild from customer i just wanted to know that is there any way i can show more than 20 items in the link feild

Hi @Galactose_NotFound,

Please apply custom/client script.

// Example:

frappe.ui.form.on("Quotation", {
	refresh: function(frm) {
		frm.set_query('quotation_to', function() {
			return {
				"filters": {
					"name": ["in", ["Lead", "Customer", "Opportunity", "Contact"]]
				}
			};
		});
	}
});

image

Please check the documentation or syntax.
https://frappeframework.com/docs/v14/user/en/guides/app-development/overriding-link-query-by-custom-script

Thank You!