<?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: How to programically display a section as part of form submission (FormEvents_Submit)</title><link>https://www.infopathdev.com:443/forums/thread/68909.aspx</link><pubDate>Tue, 02 Aug 2011 16:10:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68909</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68909.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68909</wfw:commentRss><description>&lt;p&gt;Submit using rules - then in your rules, you can use an action rule to set the field&amp;#39;s value.&lt;/p&gt;</description></item><item><title>Re: How to programically display a section as part of form submission (FormEvents_Submit)</title><link>https://www.infopathdev.com:443/forums/thread/68907.aspx</link><pubDate>Tue, 02 Aug 2011 15:58:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68907</guid><dc:creator>Derek Megyesi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68907.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68907</wfw:commentRss><description>&lt;p&gt;Hi Jimmy.,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for responding.&amp;nbsp; Can you provide more details on how to do this?&amp;nbsp; I am still learning how to use InfoPath?&amp;nbsp; How do I set the Submited&amp;nbsp;field to &amp;quot;True&amp;quot; when the form is submitted?&lt;/p&gt;
&lt;p&gt;Cheers,&lt;br /&gt;Derek&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: How to programically display a section as part of form submission (FormEvents_Submit)</title><link>https://www.infopathdev.com:443/forums/thread/68857.aspx</link><pubDate>Mon, 01 Aug 2011 05:39:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68857</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68857.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68857</wfw:commentRss><description>&lt;p&gt;There&amp;#39;s no need to use code to show a hidden section.&amp;nbsp; Just create a field in your form called &lt;strong&gt;Submitted&lt;/strong&gt; that you set to true when the form is submitted.&amp;nbsp; Then conditionally hide the hidden section based on the value of the &lt;strong&gt;Submitted&lt;/strong&gt; field.&lt;/p&gt;</description></item><item><title>How to programically display a section as part of form submission (FormEvents_Submit)</title><link>https://www.infopathdev.com:443/forums/thread/68842.aspx</link><pubDate>Sat, 30 Jul 2011 02:58:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:68842</guid><dc:creator>Derek Megyesi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/68842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=68842</wfw:commentRss><description>&lt;p&gt;Greetings,&lt;/p&gt;
&lt;p&gt;I am using InfoPath 2007 and have created a form that has a section that I want hidden until the user clicks the &amp;quot;Submit&amp;quot; button, upon which I want the following to occur as part of form submission:&lt;/p&gt;
&lt;p&gt;1) The &amp;#39;hidden&amp;quot; section to be displayed&lt;/p&gt;
&lt;p&gt;2) This&amp;nbsp;&amp;quot;updated&amp;quot; form is emailed to the user (* haven&amp;#39;t coded this 2nd part yet *)&lt;/p&gt;
&lt;p&gt;I have learned that I need to imbed this code in the &amp;quot;FormEvents_Submit&amp;quot; area of my code (I am using C#).&amp;nbsp; So far this is what I have:&lt;/p&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;public&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;void&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; FormEvents_Submit(&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;object&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sender, &lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;SubmitEventArgs&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;em&gt; e)&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;strong&gt;&lt;em&gt;{&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;&lt;strong&gt;&lt;em&gt;// Get a reference to the main data source&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;XPathNavigator&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; trackingSection = MainDataSource.CreateNavigator().SelectSingleNode(&lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;/my:NLD_Training_Request_Form/my:TelusEmployeeSectionOrNotMainSection/my:TelusIDorNotChoiceMainSection/my:TELUSIDorNotHeaderSection/my:TrackingNumberSection&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;em&gt;, NamespaceManager);&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;strong&gt;&lt;em&gt;CurrentView.SelectNodes(trackingSection,trackingSection, &lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;strong&gt;&lt;em&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;CTRL9&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;&lt;font size="2"&gt;CurrentView.ExecuteAction(&lt;/font&gt;&lt;font color="#008080" size="2"&gt;&lt;font color="#008080" size="2"&gt;ActionType&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.XOptionalInsert, &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;group1_263&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&lt;strong&gt;&lt;em&gt;}&lt;/em&gt;&lt;/strong&gt;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;-------------&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;But I am getting the following error at run-time:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;strong&gt;Only XPathNavigators from a DataObject are allowed.&lt;br /&gt;Parameter name: startNode&amp;nbsp;&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;Any Ideas?&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="2"&gt;Derek&lt;/p&gt;&lt;/font&gt;&lt;/em&gt;</description></item></channel></rss>