Dexciss Technology - How to add filter in custom script?

How to add filter in custom script?

 · 1 min read

Step 1. Goto Custom Script
Step 2. Select Doc Type
Step 3 Copy below and use as per requirement.

frappe.ui.form.on('Doc_type', {
setup: function(frm) {
frm.set_query("field_name", function() {
return {
filters: [
["Field Name","Child Field Name", "!=", ["option1", "option2"]]
]
}
});
},

Book a free 30min tailored consultation

Free first 30min of enterprise consultation to manage your business better using digital processes.


No comments yet.

Add a comment
Ctrl+Enter to add comment