Changing the default form name when the form is created Infopath 2

E

Eric

This issue relates to the message "Do you want to save the changes to
Form1?". I am creating a new InfoPath form in JavaScript using a
ActiveXObject and inserting the data in a process similar to the one
described here:
http://www.geekswithblogs.net/bpaddock/archive/2004/05/14/4907.aspx
After some trial and tribulation I was able to get most of the interface to
functionality that is desired. I have one remaining issue. The issue is
that I am having a hard time figuring out how to change the default form name
when I build the form. In the object model the name is stored in a read-only
property located at me.thisXDocument.URI. I have also noted that you can
change the name in the Save As dialog box located at
me.thisXDocument.UI.SetSaveAsDialogFileName. I can not use this to solve
this issue since the message appears when the user tries to exit a form after
a change has been made to it. I would appreciate any help or suggestions
that you give.

Thanks,

Eric
 
A

Adam Harding

Eric

I think that because an Infopath Template verifies itself from its default
name and location or if fully trusted via RegFrom its form name and company
name.

changing the default name means the .XML file can no longer reference the
..XSN that it uses to get its definitions etc. If it cannot find that then it
cannot open.

hope this helps

Cheers Adam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top