How can I disable the duplication check on the Name field?

Hi

Whenever I save a new record for any module it runs a record duplication validation and shows a list of all other records with the same name as the on I'm trying to save and it prompts me to either cancel the saving or to Ignore Duplicate and Save.

Anyway I can disable this validation? The validation is happening on the "Name" field.

I am using SugarCRM Professional, Version 7.2.0, on demand.

Any help will be appreciated.

Parents
  • Hello seandonnelly

    You can achieve it by Extending vardefs.

    in main vardef search for  duplicate_check array.

    You need to remove name fields from filter_template array. 

    Make sure these changes you are doing by extending vardefs So it will be upgrade-safe.

    Do quick-repair & Rebuild.



    Hope it helps you

    Thanks



  • haha,I just do this in Opportunity Module tomorrow.Let me share my experience.

    1.Create \custom\Extension\modules\Opportunities\Ext\Vardefs\sugarfield_cancel_duplicate_check.php (The name of this file can be changed to else as you wish). And add the following code.

    <?php
    $dictionary['Opportunity']['duplicate_check']['enabled']=false;
     ?>

    2.Do quick-repair & Rebuild.

    That's all the things need to do.

    HTH





Reply Children
No Data