<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: OnSaveRequest</title><link>https://www.infopathdev.com:443/forums/thread/14918.aspx</link><pubDate>Fri, 24 Nov 2006 12:18:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14918</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14918.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14918</wfw:commentRss><description>Hi Mash Welcome to the Forums,&lt;br /&gt;&lt;br /&gt;In xdocument.UI object, there is method called "SetSaveAsDialogFileName" method. This method prefills the filename in the save dialog box's filename area.&lt;br /&gt;&lt;br /&gt;This method takes one "string" argument that is filename and you can write below the code in ‘OnSaveRequest#%92 function.&lt;br /&gt;&lt;br /&gt;var fileName = XDocument.DOM.selectSingleNode("/my:myFields/my:field1").text + ".xml"; &lt;br /&gt;XDocument.UI.SetSaveAsDialogFileName(fileName);</description></item><item><title>OnSaveRequest</title><link>https://www.infopathdev.com:443/forums/thread/12990.aspx</link><pubDate>Fri, 24 Nov 2006 04:14:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12990</guid><dc:creator>Masih</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12990.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12990</wfw:commentRss><description>Hi&lt;br /&gt;&lt;br /&gt;I have create a text field on my form, where a user can name the form by entering a short text.&lt;br /&gt;&lt;br /&gt;When the user clicks "save as" this name should appear in the "File name field" instead of the standard "Form1"&lt;br /&gt;&lt;br /&gt;How can this be done in the OnSaveRequest function?&lt;br /&gt;&lt;br /&gt;If there is anyone who can tell me what to do, I would greatly appreciate it.&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;&lt;br /&gt;Masih</description></item></channel></rss>