Hi there hope eveyone is doing good!
my question is that is it possible we have a category field and have 20 categories
and we want to show in another document but it will only display 5 to 10 fields.
can we show all the fields and not only some specific
Yes, it is possible but it depends on how you are structuring your Link field & the DocType
- Make Sure the Category DocType is properly configured
-
The Link field should point to the correct DocType that contains your categories (
Item Group
,Category
). -
make sure all categories you wanted to appear are active
- Remove or customize filters on the Link field
frappe.ui.form.on('Your DocType', {
onload: function(frm) {
frm.set_query('category_fieldname', function() {
return {
filters: {} // No filters = show all
};
});
}
});
- Use Dynamic Link if categories vary by context
If your categories depend on another field (like: product type), consider using a Dynamic Link & passing the filter based on another value in the form.