How to hide and show the fields from detail view.
Few threads are similar to your case.Can you try those?
Re: How to conditionally hide/show fields in Sugar CE 6.5.16?
I simply want to hide a single field(charge_c) from the detail view and need to show freight_charge_c field with respect to Quote_type_c dropdown field. In your reply i Check both links but it is not that much useful for me.
You haven't indicated the edition of Sugar that you are using, so I am not sure if this is applicable, but SugarLogic would allow you to control the visibility of a field based on contents of another field.
See here for more info on that subject: http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_6.7/Module_Framework/Sugar_Logic/index.h…
Hello Angel ,
I am using Sugar CE 6.5.22 version.
Hi anurag,Step 1 Add a js file in detailviewdefs.php located at (custom/modules/yourmodulename/metadata)Step 2 Add your js file like this
$module_name = 'Your module Name';
$viewdefs [$module_name] =
'file' => 'custom/modules/Your module Name/sample.js',
'maxColumns' => '2',
Step 3 create a sample.js file and place it at the specified portionStep 4 Do the needfull
I hope it helps you
I created sample.js but it does not load when edit record, please help me
Did you add the sample.js in your editviewdefs.php (for Edit) as well as your detailviewdefs.php (for Detail)?
I added sample.js in my editviewdefs.php and detailviewdefs.php but js only load in editview not in detailview, it mean in detailview my code does not effect
Retrieving data ...