I am allowing user to select base raw material to use for manufacturing.
I have created a field of Type → Link but when a user go to this field is shows all Items.
Here I only want to show those Items which belong to Raw Material group and have a custom field called
is_brightbar should be true.
How to do this?
Thanks for sharing the link. This meaning I will have to write a Custom Script.
I was hoping that we would be able to set filter when defining Field in DocType.
@saurabh6790. This is mind blowingly simple just one line of code!!
But now I am a bit confused as the documentation link posted by @Solufy shows a lengthy coding style while the link posted by you shows a different coding style.
Just from curiosity which one is better to use?
Actually which one should one use?
On going through both the links I can say that if you want to filter list just using one single parameter then the link suggested by @saurabh6790 is the way to go by.
If one needs to use multiple parameters for filtering the list then the official documentation as proposed by @Solufy is the way to go by.