Applying Filters

Hii guyss…
i need help with adding filters.


here i need to show only the universities from Germany or which country i choose above. how to do it??

https://frappeframework.com/docs/user/en/guides/app-development/overriding-link-query-by-custom-script

frappe.ui.form.on("Application", {
    setup: function(frm) {
        frm.set_query("university", function(doc) {
            return {
                filters: {
                    country: doc.country
                }
            };
        });
    }
});

1 Like