Built in fields

Hello everyone,

I’ve created a module that has a couple fields that are builtin fields like Date created, Date modified these are date/time types. It also has 2 other files that show who modified and who created, so there are 4 fields.

If i look at accounts they have two fields, one Date created that displays a date, time, and who, also a date modified that displays date, time, and who. When looking in studio this is also a date/time type in fields. I can’t edit my field, is there anyway that i can display my field the same way that it is in accounts? Thanks!


To do this, you’d have to modify the Detail view metadata for the custom module.

If you navigate to /custom/modules//metadata/detailviewdefs.php

If you have placed your Date Modified and Date Created fields next to each other, then look for an array that looks like:

        array (
          0 => 'date_entered',
          1 => 'date_modified',

Replace this array with:

array (
          0 => 
          array (
            'name' => 'date_entered',
            'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
          1 => 
          array (
            'name' => 'date_modified',
            'label' => 'LBL_DATE_MODIFIED',
            'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',

and run a Quick Repair & Rebuild in your CRM.

If pasted in correctly, the Date Created and Date Modified fields should then display how you expect.
However, if you remove and then later re-add either the Date Created or Date Modified fields from your Module, you will have to add this section of code again.

1 Like