You are right in your analysis that "this" has a different value in XFA documents and AcroForm documents.You should be able to useMySaveAs(event.target,cPath, "filename");in an XFA form instead.For more information take a look at the documentation. Hope that helps,Martin