i need disable input type ........

i am new in suitecrm .and trying to make input type not editable mode.but when i change code on vardef.ext.php. ==> save ==>Repair ==> Quick Repair and Rebuild… all change are removed automatically… kindly suggest how to disable (non-editable mode ) in input type.

Hello there,

SuiteCRM follow the extension framework. So you need to add your changes to specific path

for example : Contacts module.

To change Vardef, You need to do custom/Extension/modules/Contacts/Ext/Vardefs/anyname.php

then do quick repair and repair. it will be merged automatically to your vardefs.ext.php

While the above answer gives you the idea of where exactly to customize your field. Here is the way you can make your field only viewable (non-editable) in Edit View.

For making field name mycustomfield in module Contacts read only in Edit View, go to

custom/modules/Contacts/metadata/editviewdefs.php

If the above file does not exists, copy from core folder.

Change the field display as following

 array (
            'name' => 'mycustomfield',
            'label' => 'LBL_MYCUSTOMFIELD',
	    'customCode' => ' {$fields.mycustomfield.value}'
)

This will show the field value in Edit View as read only.