<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Infopath Form Submitted to a new Library using the old template</title><link>https://www.infopathdev.com:443/forums/thread/86615.aspx</link><pubDate>Thu, 31 Jan 2013 02:32:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:86615</guid><dc:creator>Satish_SPDev</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/86615.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=86615</wfw:commentRss><description>Hi..

I&amp;#39;m working for Insurance client and we have a Infopath form which is developed and in production. Now as we entered the new year they had few modifications to the form ( few fields and sections were to be removed) and publish it as a new template to a different library, where users can create new forms based on the new template and the old library is archived.

In few cases the user without filling out the entire form again can get into the old library and open the form which they filled last year and can click on the copy button which inturn copies all the fields and creates a new working copy and user can modify the existing data and fill out some additional information in the form and hit submit.

In this case the form has to be submitted to the new library which has a new template.

Is there a way i can write a script in the (&amp;quot;On click&amp;quot;) event of the copy button to copy all the fields to the new template in the new library and load it whenever the user hits the copy button on the existing form ?? How can i do it. ??

This form is being developed in Jscript.

Additional Information: right now i have created a different view in the old template &amp;quot;Copy View&amp;quot; which is same as the new form template and switching the view to &amp;quot;Copy View&amp;quot; whenever the user clicks the copy button. And after filling out the form, Submit button will submit the form to the new library. But the problem is it is still based on the old template though it is same as the new form template.



Any help is greatly appreciated!!!


Thanks
Satish..</description></item></channel></rss>