Custom display, for all fields in each module

Hi everyone,

I would like to know how to change the layout and display of a field in a general way.

For example, if I created a textual reading field, how could I make the display, in edit, read-only, the same for all modules by default?

For making the field readonly in edit view, you would need to move module editviewdefs to custom/modules/<MODULE_NAME>/metadata/editviwedefs.php and change the field displayed with customCode

`array (

ā€˜name’ => ā€˜custom_field_name’,
ā€˜label’ => ā€˜LBL_CUSTOM_FIELD_LABEL’,
ā€˜customCode’ => '{$fields.custom_field_name.value} ',
),`

cherub-chum,
ok, but I have to make these changes automatic, every time I add this field in a new module.
I can’t edit every single time a field.
tnk for help

Hi,

After a few days, I was able to find the solution for my problem with the layout of the fields self-generated by SuiteCRM.

The solution is inside the ā€œinclude / SugarFieldsā€ repository here we can find the folders that contain the template files (.tpl ).

From here we can apply the necessary changes.
Thank you for your help. :kissing_heart:

Take note that your changes migth be overwriting when upgrading. Try to include your changes to
custom/include/SugarFields to see if they work. That should make them upgrade safe.