<?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>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Using formstate to store values</title><link>https://www.infopathdev.com:443/forums/thread/49935.aspx</link><pubDate>Tue, 15 Dec 2009 14:36:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49935</guid><dc:creator>mrsafe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49935.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=49935</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3" face="Times New Roman"&gt;Hi Patrick Thanks for the reply, I have since used form fields to accomplish my goal, however, I still would appreciate an explaination of what the formstate actually does?&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;font size="3" face="Times New Roman"&gt;Thanks again.&lt;/font&gt;&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Re: Using formstate to store values</title><link>https://www.infopathdev.com:443/forums/thread/49933.aspx</link><pubDate>Tue, 15 Dec 2009 14:28:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49933</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49933.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=49933</wfw:commentRss><description>&lt;p&gt;You are barking up the wrong tree. Why not have two buttons that conditionally show based on who opens the form? Then, you can set a value in the form and save it and next time opened you can use conditional formatting and/or On Load rules to change what displays.&lt;/p&gt;</description></item><item><title>Using formstate to store values</title><link>https://www.infopathdev.com:443/forums/thread/49766.aspx</link><pubDate>Mon, 07 Dec 2009 18:44:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49766</guid><dc:creator>mrsafe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49766.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=49766</wfw:commentRss><description>&lt;p&gt;Hi There,&lt;/p&gt;
&lt;p&gt;I wondered if anyone could clarify my understanding of formstate in browser based forms.&lt;/p&gt;
&lt;p&gt;As I understand it, I can use formstate to get and set properties that will persist accross server sessions.&lt;/p&gt;
&lt;p&gt;Does this mean I should be be able to set a formstate value in the submit event handler and when I reopen the same form the formstate value should be whatever I set it to before the form was&amp;nbsp;submitted?&lt;/p&gt;
&lt;p&gt;The reason why I&amp;#39;m asking is that I use a method that allows a sngle submit button to be used by both admin and users of the forms. When the form is reopened by an admin for example, the admin changes say a status field dropdown and clicks submit. The form will&amp;nbsp;then overwrite the original if it existed. My problem is the email that is only supposed to fire once, fires every time.&lt;/p&gt;
&lt;p&gt;This is of course expected behaivour if your send emails method is fired from inside the the submit event handler.&lt;/p&gt;
&lt;p&gt;So I need a flag of some description which lead me to the formstate property. I thought if I set that to whatever just after the sendemails method; that value would be stored so when the admin opens the forms and submits again, the&amp;nbsp;value could be read and emails omitted if the value previously set, matched. Some how I think that&amp;#39;s not the case.&lt;/p&gt;
&lt;p&gt;Any suggestions or guidance?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>