Is it possible to show all the categories in the list in the link field?

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

  1. 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

  1. 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
      };
    });
  }
});
  1. 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.

Hi

The link fields drop down can be controlled by working with system settings as following;

The max limit is 50.