Suite8 Edit view

Hi,

I understand that EditView and DetailView have been replaced with the Record View in SuiteCRM 8.

In my custom module, I have a relate field that is populated via a logic hook. I want to display this field in read-only mode (as in Detail View), but currently it also appears in edit mode, which makes it look like the user can change or select it — even though it’s not editable and shouldn’t be.

Is there a recommended way in SuiteCRM 8 to show relate fields as read-only in Record View edit mode? Or to hide them from edit mode entirely?

Thanks in advance.

You can try to hide them from the STUDIO.


Another way, hide it in the code.

  • modules/yourmodule/metadata/editviewdefs.php

‘display’ => ‘none’,

You need to check this on forum. I think there is way to hide from the vardefs folder too.

custom/Extension/modules/yourmodule/Ext/Vardefs/

In php, in the field config set the default to hide and then use the mode to show it on detail view: