I’m trying to filter on extrafields. I am able to add a query parameter search_options_{fieldname} to the url and filtering works as expected, but the UI does not display filter inputs at the top of the list page.
Is there a way to make Dolibarr automatically provide filter inputs for extrafields?
Can you provide an example screenshot that explains what you want?
Can you also post a screenshot of your extrafield definition?
I figured it out. It turns out, the “ATM Lead 2.6.0” module in question, appears to have a custom implementation for the filtering content that does not have all the same capabilities as the Dolibarr core templates. It can only at best display text fields. It also seems to have some bugs with regard to with what is expected from extra field definition. The following line of code appear to expect “$typeofextrafield” to be a string, but evaluates to an array.
$typeofextrafield=version_compare(DOL_VERSION, 17, ‘<’) > 0 ? $extrafields->attribute_type : $extrafields->attributes[‘lead’][‘type’];;