<?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: HOW TO WRITE THE CODE TO CHANGE VALUE IN FIELD STATUS TO +1</title><link>https://www.infopathdev.com:443/forums/thread/95386.aspx</link><pubDate>Thu, 23 Jan 2014 10:07:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95386</guid><dc:creator>Tesoro</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95386.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=95386</wfw:commentRss><description>Hi Jimmy,

I have no idea how to do this. Could you, please, tell me step by step or maybe you could do an example for me? I attached example form.

I&amp;#39; ve used the rules in my form to change this field  but it doesn&amp;#39;t work in case when someone forget to fill in required field. Originator fill in fields (but one of required fields is missing) and press button &amp;#39;Send for approval&amp;#39;. The form return an error that you have to fill in all required fields but button &amp;#39;Send for approval&amp;#39; disappears and there is a new button &amp;#39;Accept&amp;#39;. :/

PS. Thank you for your help (it&amp;#39;s not the first time ;) )</description></item><item><title>Re: HOW TO WRITE THE CODE TO CHANGE VALUE IN FIELD STATUS TO +1</title><link>https://www.infopathdev.com:443/forums/thread/95340.aspx</link><pubDate>Tue, 21 Jan 2014 14:51:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95340</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95340.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=95340</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello Tesoro,&lt;/p&gt;&lt;p&gt;&amp;nbsp;You don&amp;#39;t need code for this. You can simply place a rule on the button to set the field to the value &lt;strong&gt;&lt;u&gt;field&lt;/u&gt; + 1&lt;/strong&gt; . If your button is configured as a Submit and your submit settings are to simply submit the form via e-mail, you can change the submit settings to the Execute Rules option and then add rules that perform the e-mail submit and change the field&amp;#39;s values.&lt;/p&gt;</description></item><item><title>Re: HOW TO WRITE THE CODE TO CHANGE VALUE IN FIELD STATUS TO +1</title><link>https://www.infopathdev.com:443/forums/thread/95338.aspx</link><pubDate>Tue, 21 Jan 2014 12:20:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:95338</guid><dc:creator>Tesoro</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/95338.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=95338</wfw:commentRss><description>up.

Please advise. I have an infopath form with field status (default = 0). when you click on submit button the form is sent via email. I would like to have value 1 in field status after opening the email. 

Please, help.</description></item><item><title>HOW TO WRITE THE CODE TO CHANGE VALUE IN FIELD STATUS TO +1</title><link>https://www.infopathdev.com:443/forums/thread/94328.aspx</link><pubDate>Fri, 15 Nov 2013 09:31:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:94328</guid><dc:creator>Tesoro</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/94328.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=94328</wfw:commentRss><description>&lt;p&gt;Hi All, &lt;/p&gt;&lt;p&gt;I would like to treat my form as a kind of workflow. &lt;/p&gt;&lt;p&gt;1. Form is filled in by the user and sent to Manager via email. &lt;/p&gt;&lt;p&gt;2. Manger open form via email and click ACCEPT. Form is sent to the SharePoint and to Administration department &lt;/p&gt;&lt;p&gt;3. Administration dep. Open the form via email and click the link, which is placed in the form &lt;/p&gt;&lt;p&gt;There are 2 buttons and 1 link: SENT FOR APPROVAL, ACCEPT and LINK. I would like to visible button SENT FOR APPROVAL only on 1st step (form initiator), button ACCEPT only on 2nd step (Manager) and LINK only on step 3rd (Administration dep.) What I came up? &lt;/p&gt;&lt;p&gt;
I would like to add a filed STATUS (hidden for users) with  default value = 0 and if the user press the button status will be change to 1 (I reached this by using rules) and I set up other rule to visible button SENT FOR APPROVAL only in case when status = 0. Form is sent to manager - When manager open the form status will be change to 2 (how the code should look like?) and I will setup the rule to visible button ACCEPT only in case when status =2. When the Manager presses the button ACCEPT value in STATUS field will be change to 3 (using rules). Form is sent to Administration dep. – When Administration dep. Open the form value in field STATUS will be change to 4 (how the code should look like?) and I will set up the rule to visible LINK only in case when STATUS = 4.&lt;/p&gt;&lt;p&gt;MY MAIN QUESTION IS: HOW TO WRITE THE CODE TO CHANGE VALUE IN FIELD STATUS TO +1? &lt;/p&gt;&lt;p&gt;
Thank you in advance&lt;/p&gt;</description></item></channel></rss>