Issue with Custom Field Type in SuiteCRM 8 - Ignored Templates and Search Filter Problems

Hi everyone,

I’ve created a custom field type in SuiteCRM 8, and I’m running into some challenges. Here’s what I’ve done so far:

  1. The field is successfully created and registered, and I’ve added the templates for Detail and Edit views in the corresponding paths.
    However, the system seems to ignore these templates, and the field doesn’t render as expected.

  2. As a workaround, I set the field to readonly in the vardefs.
    While this displays the field in views, the downside is that it doesn’t appear in the filters section.

  3. I attempted to modify the searchdefs, as we used to do in SuiteCRM 7, to include the field in the filters. Unfortunately, this approach doesn’t seem to work in SuiteCRM 8.

Has anyone else encountered similar issues or found a solution to:

  • Ensuring the custom templates for Detail/Edit views are recognized by the system?
  • Making a custom field appear in filters without relying on the outdated searchdefs approach?

Any guidance or advice would be greatly appreciated.

Can you please check if the field is present in SearchFields.php as well.

Yes, it is…

  'code_account_c' =>array(
      'unified_search' => true,
      'full_text_search' => array (
          'enabled' => true,
          'boost' => 1,
          'searchable' => true,
      )
  )