I want to call the generate button's funtionality from within the callout of a submit button(customized). I have a tpl file, which works fine with the generate button, but not when I try to customize with my button..Can you please give some idea how I do it..?IWEventRegistry.addItemHandler("/content/content_name/submit","onCallout", my_function);function my_function() { contentIdName1 = IWDatacapture.getItem("/CATALOG/CONTENT_ID"); var genNameValue = ".../.../content/content_name/"+contentIdName.getOptions()[parseInt(contentIdName1.getValue())].value+".xml"; IWPageGeneration.setOutputFile(genNameValue); IWPageGeneration.setPresentationTemplate("content_generatexml.tpl"); return true;}this works fine with the OnGenerate-addformhandler...Thanks in advance.