Remove or Hide fields from Mass Update

How can i remove or hide these fields from Mass Update?

  • Sync to Outlook®
  • Opt out Primary Email

I add vardefs.php to \custom\Extension\modules\Contacts\Ext\Vardefs, but i could not find name of the these fields :frowning:

<?php
$dictionary['Contact']['fields']['primary_address_city']['required'] = false;
$dictionary['Contact']['fields']['do_not_call']['massupdate'] = false;
$dictionary['Contact']['fields']['account_name']['massupdate'] = false;
$dictionary['Contact']['fields']['assigned_user_id']['massupdate'] = false;
$dictionary['Contact']['fields']['opportunity_role']['massupdate'] = false;
$dictionary['Contact']['fields']['report_to_name']['massupdate'] = false;
$dictionary['Contact']['fields']['portal_active']['massupdate'] = false;
$dictionary['Contact']['fields']['lead_source']['massupdate'] = false;
$dictionary['Contact']['fields']['portal_account_disabled']['massupdate'] = false;
$dictionary['Contact']['fields']['portal_user_type']['massupdate'] = false;
$dictionary['Contact']['fields']['prospect_list_name']['massupdate'] = true;
$dictionary['Contact']['fields']['optout_primary']['massupdate'] = false;
?> 

Maybe try

sync_contact
optout_primary

Also, have you tried changing this in Studio, instead of through code?

Thank you, but when i try them, they are there :frowning:

I know, but these fields are not in studio.

Hey dtosun,
I have same issue. did you solve this?

Hi,
since i had the same problem…
you can change in MassUpdate.php (…suitecrm/include/) lines 479 and 630 – there is an if-statement which checks for Contact. Either just delete it or rename so it won’t hit that conditions. Then SuiteCRM won’t generate those options for the massupdate.
(you will have to redo this after updates i guess… it would be better to create something in /suitecrm/custom/include … )