How to change a required field to non-required

I deployed a new module which is a sales type module, I try to turn the “assigned to” field into not required field, but field it is missing in the studio (does not show up).

Where should I modify to code to do this?

copy the file /suitecrmwww/modules/{your_module}/metadata/editviewdefs.php to /suitecrmwww/custom/modules/{your_module}/metadata/ (you will probably have to create the folder {your_module}/metadata/) and maybe have to make a file permission

after you copied open the editviewdefs.php and look for this line

array('name'=>'assigned_user_name','displayParams'=>array('required'=>true)),

and change it to

array('name'=>'assigned_user_name','displayParams'=>array('required'=>false)),

thenk make a Quick Repair and Rebuild and it will be non required

best regards

1 Like