How to make a custom field read only in detail view??

How to make a custom field read only in detail view??

Thanks!!

Parents
  • Hi sugardeveloper11,

    Do you want to make a  field as  readonly in 'Detail view'?

  • This is just example:

    1) Copy the file (only if it does not exist) from modules\Accounts\clients\base\views\record\record.php to custom\modules\Accounts\clients\base\views\record\record.php

    2) Find your field in this file (for example: [industry])

    3) replace

    'industry',

    by

    array( 'name' => 'industry', 'readonly' => true, ),
Reply
  • This is just example:

    1) Copy the file (only if it does not exist) from modules\Accounts\clients\base\views\record\record.php to custom\modules\Accounts\clients\base\views\record\record.php

    2) Find your field in this file (for example: [industry])

    3) replace

    'industry',

    by

    array( 'name' => 'industry', 'readonly' => true, ),
Children