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