Hello,
On selecting the record from the popup, want to call javascript function. how to override with js?
Thanks,
karthi
Hello,
On selecting the record from the popup, want to call javascript function. how to override with js?
Thanks,
karthi
Hi Karthi,
The pattern I usually use for this is to sepcify the callback function in the editviewdefs.php:
'name' => 'popup_field_to_target',
'displayParams' => array(
'call_back_function'=>'myAwesomefunction',
)
Your new JS function can then do custom logic and call the usual function:
function myAwesomefunction(data){
//Do stuff before fields are set
set_return(data);
//Do stuf after fields are set
}
Hope this helps,
Jim