ReadOnly field not working in sugarcrm 6.4.4

Hi All

       I have a custom checkbox field in accounts.And i want to make in readonly in create view as well as edit view.

I have used /custom/Extension/modules/Accounts/Ext/Vardefs/test.php Shijin Krishna Ajay Kumar

<?php

$dictionary['Account']['fields']['test_c']['readonly']=true;

?>

But it is not working.

Parents
  • Hello sidhu sidhu,

    Following is works fine for me.

    go to custom/modules/<your_module_name>/metadata/editviewdefs.php


    Find your field name into that file and add the following there as below.

    array (

               'name' => 'test_c',

               'label' => 'LBL_TEST',

               'displayParams'=>

               array(

                 'readonly'=>'true',
              ),

    ),

    Let me know if you still have any issue.

    Thanks

Reply
  • Hello sidhu sidhu,

    Following is works fine for me.

    go to custom/modules/<your_module_name>/metadata/editviewdefs.php


    Find your field name into that file and add the following there as below.

    array (

               'name' => 'test_c',

               'label' => 'LBL_TEST',

               'displayParams'=>

               array(

                 'readonly'=>'true',
              ),

    ),

    Let me know if you still have any issue.

    Thanks

Children