how to add js function in nested form ?
Hello @Hari !
As we were discussing before you'd better have a separate own module. There you may have a special folder under the name "js" with the js files which may be included to the code via constructions like
$this-oTemplate->addJs(array('main.js'));