<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: use onsubmit event</title><link>https://www.infopathdev.com:443/forums/thread/3226.aspx</link><pubDate>Tue, 03 Oct 2006 07:34:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3226</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3226.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3226</wfw:commentRss><description>Hi basescu,&lt;br /&gt;&lt;br /&gt;Here are the steps,&lt;br /&gt;1.	Open your form in design mode. &lt;br /&gt;2.	On the &lt;b&gt;Tools&lt;/b&gt; menu, click &lt;b&gt;Submitting Forms&lt;/b&gt;. &lt;br /&gt;3.	In the &lt;b&gt;Submitting Forms&lt;/b&gt; dialog box, click &lt;b&gt;Enable Submit commands and buttons&lt;/b&gt;. &lt;br /&gt;4.	In the &lt;b&gt;Submit to&lt;/b&gt; box, Select &lt;b&gt;Custom submit using form code&lt;/b&gt; option.&lt;br /&gt;5.	Check &lt;b&gt;Edit Form Code&lt;/b&gt; checkbox and click on OK button.&lt;br /&gt;</description></item><item><title>Re: use onsubmit event</title><link>https://www.infopathdev.com:443/forums/thread/3225.aspx</link><pubDate>Sun, 01 Oct 2006 07:02:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3225</guid><dc:creator>basescu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3225.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3225</wfw:commentRss><description>Thank you very much, but i think i wasn't specific enough.&lt;br /&gt;&lt;br /&gt;i know to write code for the event.&lt;br /&gt;i don't know where to write it.&lt;br /&gt;If i have a button, i right click on it, and then i use the "code button" on the dialog box, and that opens me the editor, with the cursor on the "button name::onClick"&lt;br /&gt;{&lt;br /&gt;//write your code here&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;but with the onsubmit, i don't know what to write&lt;br /&gt;XDocument.onsubmit?&lt;br /&gt;and where to write it?&lt;br /&gt;&lt;br /&gt;thanks</description></item><item><title>Re: use onsubmit event</title><link>https://www.infopathdev.com:443/forums/thread/3224.aspx</link><pubDate>Fri, 29 Sep 2006 20:12:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:3224</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/3224.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=3224</wfw:commentRss><description>Hi basescu Welcome to the Forums,&lt;br /&gt;&lt;br /&gt;You need write code onsubmit event, &lt;br /&gt;&lt;br /&gt;XDocument.DOM.selectSingleNode("Xpath of your field").text = “New Value”;&lt;br /&gt;&lt;br /&gt;By using above line you are changing the value of that field. &lt;br /&gt;You want to send above form by email right, and then you need to write code for email adapter for sending the form with attachments. &lt;br /&gt;&lt;br /&gt;Use "Email" as the keyword in the forum search, you should be able to find code to send email through code. Using that code you can send the form via email.&lt;br /&gt;</description></item><item><title>use onsubmit event</title><link>https://www.infopathdev.com:443/forums/thread/1573.aspx</link><pubDate>Fri, 29 Sep 2006 06:49:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:1573</guid><dc:creator>basescu</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/1573.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=1573</wfw:commentRss><description>I use jscript&lt;br /&gt;I want to use the onsubmit event to change the value of a field in the form, and the saved form that will be sent by mail and and downloaded by the reciver to have that field modified(that field will dictate what will be seen).&lt;br /&gt;&lt;br /&gt;Can anybody help me?&lt;br /&gt;</description></item></channel></rss>