How can I add custom scripts in a custom built module and also JS function calls onchange javascript event?
In your editviewdefs.php or detailviewdefs.php you can include custom JS file array to the ‘templateMeta’ array.
'templateMeta' =>
array (
......
'includes' =>
array (
0 =>
array (
'file' => 'modules/my_custom_module/js/my.js',
),
),
.....
),