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"]]
]
}
});
},
No comments yet. Login to start a new discussion Start a new discussion