Custom Filter for Link Field Based on Another Field

How can I filter the options of a Link field in a Frappe form based on the value of another field in the same document?

1 Like

Hello @smitthakkar

Please take a look at this; I hope it works for you.

2 Likes

HI @Manav_Mandli @smitthakkar

Actually, from version-15 you can do it even without code …

https://docs.frappe.io/erpnext/user/manual/en/creating-custom-link-field#adding-filters-to-link-field

Hope this helps.

3 Likes

Hii @avc

Thanks for sharing! Yes, I just checked and this works perfectly in version-15. Really helpful to know we can handle it without any custom code now :+1: