I am using a SugarCRM 18.104.22.168.
I want to run the default duplicate check functionality of SugarCRM on keyup event of the backbone controller.
So far, I have written the following code to extend the default controller of the record view, and I am unable to find what to do next (how to run the duplication check).
following file is located at:
//Add event that listens for keup event on last_name field
this.events['keyup input[name=last_name]'] = 'checkDuplicates';
//Get current value of last_name
var sLast = this.model.get('last_name');
//Check for duplicate vlues if not empty
// run the default duplicate check for the contacts module here.
Any help will be appreciated.