Intercept sendback function at popup def

Hello,

I want to ask somethin, is it possible we intercept send back funtion when we choose the list on popup def. I wanted to add another function after it clicked and pasted to representative related field.

It will be better if there is via default suitecrm function although some insight for a custom code will also acceptible. Much appreciated.

@IemmaJedi
I think that it’s possible. You can load javascript into popup window and change attribute onclick. For example (using jquery):

$("table tr td:nth-child(1)".each(function() {
  let oldclick=$( this ).attr( "onclick" );
  $( this ).attr( "onclick","<your code/function_name>"+ oldclick );
});