<?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: form state</title><link>https://www.infopathdev.com:443/forums/thread/14970.aspx</link><pubDate>Fri, 22 Dec 2006 13:44:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14970</guid><dc:creator>jweir</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14970.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14970</wfw:commentRss><description>Thanks Shiva,&lt;br /&gt;&lt;br /&gt;One more quick Question... &lt;br /&gt;&lt;br /&gt;from the Onload is there an easy way to a submit using a data connection?&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: form state</title><link>https://www.infopathdev.com:443/forums/thread/14969.aspx</link><pubDate>Fri, 22 Dec 2006 06:24:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14969</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14969.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14969</wfw:commentRss><description>Hi Jim Weir,&lt;br /&gt;&lt;br /&gt;You are populating some field#%92s values by using rules right. Then you need to have one condition on that rule depends the form is new or old one. This value we can find using onLoad code as below.&lt;br /&gt;&lt;br /&gt;var formState = XDocument.IsNew;&lt;br /&gt;XDocument.DOM.selectSingleNode("/my:myFields/my:FormState").text = formState;&lt;br /&gt;&lt;br /&gt;In &lt;b&gt;FormState&lt;/b&gt; field have the value is from is new or old (True/ False). You can use this field for condition on above rules which ever you populating the data to some fields.</description></item><item><title>form state</title><link>https://www.infopathdev.com:443/forums/thread/13014.aspx</link><pubDate>Thu, 21 Dec 2006 16:34:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13014</guid><dc:creator>jweir</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13014.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13014</wfw:commentRss><description>Hello all,&lt;br /&gt;&lt;br /&gt;Happy Holidays to you all &lt;br /&gt;&lt;br /&gt;Not sure where this topic should go, so I am putting it here for now.&lt;br /&gt;&lt;br /&gt;I am not sure if this can be done or not&lt;br /&gt;&lt;br /&gt;I would like to know if user is creating a new form or updating an old form. I have published the form to SharePoints 2003 and set the flag to allow overwrite the form which is great and works. &lt;br /&gt;&lt;br /&gt;What I would like to do is if the user creates a new form to populate some of the fields for the user, but if they are editing an old form not to populate the fields except for a few others.&lt;br /&gt;&lt;br /&gt;Thank you in advance for all your help&lt;br /&gt;</description></item></channel></rss>