How can i use frappe.call to filter field (select) options

how can i use frappe.call to filter select field options

Hi @MiM

The following code can be used to filter data with option 1 or option 2.

frappe.call({
    method: 'frappe.client.get_value',
    args: {
        'doctype': 'Item',
        'filters': {'your_select_field_name': ["in", ['option1','option2']]}
    }
});

please let me know if this solves the problem or add some more detail to your query.

1 Like

first of all thanks for your replay
secondly, i do not know the options because i get them from database not fixed options
but i tried to follow this link
https://frappe.io/docs/user/en/guides/app-development/overriding-link-query-by-custom-script
and it worked
again thank you very much