ERPNext.com Frappe Cloud Documentation Partners Frappe School Public Chat

Multiple Values for one filter field

Is there ant that I can put multiple values for one filter field?

Like this?

You can do it like this

frappe.ui.form.on("BOM", {
  setup: function(frm) {
    frm.set_query('item', function() {
      return {
        filters: {
          "item_group": 
          [
            'in', 
            [
              'CORONA', 
              'INDUCTION CAP SEALING MACHINE', 
              'MEDICAL OZONE GENERATOR'
              ]
              ]
        }
      };
    });
  }
  });

@Rabie_Moses_Santilla if i may suggest, you can/should go through the frappe framework tutorial first so as to grasp the basic concepts of the framework - and i think as you go through the tutorial there are indepth article links attached there for further things/concepts as well
you can also do the framework basics course on frappe.school

hope this helps

1 Like

Thank you Sir!

Thank you for the suggestion