<?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: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/106699.aspx</link><pubDate>Thu, 19 May 2016 20:50:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:106699</guid><dc:creator>tmAmin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/106699.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=106699</wfw:commentRss><description>&lt;p&gt;I have made an InfoPath form where I have custom Submit button. I used the custom Submit button to run few rules such as&amp;nbsp;submit data to a list&amp;nbsp;and send email to the user. Now both the built-in Save button and custom Submit button are acting in a same way, i,e the rules are running whether&amp;nbsp;I am saving the form or submitting the form. This is creating problem for me as later when someone edit&amp;nbsp;an item in the list and save it, users are getting email which suppose to only occur when someone submit the form, not edit.&lt;/p&gt;&lt;p&gt;Can you pleasehelp me how I can resolve this problem. Thanks.&lt;/p&gt;</description></item><item><title>Re: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/57159.aspx</link><pubDate>Wed, 21 Jul 2010 15:30:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57159</guid><dc:creator>blue_psychedelic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=57159</wfw:commentRss><description>&lt;p&gt;Sorry for taking forever to get back to you. I&amp;#39;m not sure what you mean exactly, so I&amp;#39;ll just detail the whole process.&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;Behind the scenes, there is a hidden field in my data source that stores the unique file name (see next) upon submit. This drives the process. New forms don&amp;#39;t have a value for this field, but ones that have been previously submitted, will have it. &lt;br /&gt;&lt;/li&gt;&lt;li&gt;When creating the secondary dc (data connection) for Submitting to the SharePoint library, I specified a unique file name (as a concat of the username and the time submitted) and stored it in a column in the SP Library.Upon submission, the value is also captured in the hidden field (see previous).&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Another secondary dc grabs the title from the SharePoint repository and stores it in an an expression box that is hidden from user view.&lt;/li&gt;&lt;li&gt;The submit button is set to be disabled via conditional formatting when the the expression box value (i.e., the title from the SP list ) is equal to the value of the hidden field.&lt;/li&gt;&lt;/ul&gt;Hope that helps!&lt;br /&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/54957.aspx</link><pubDate>Mon, 17 May 2010 18:43:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:54957</guid><dc:creator>Lalewicz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/54957.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=54957</wfw:commentRss><description>&lt;p&gt;I can&amp;#39;t figure out how to get the unique file name? Can you give me a push?&lt;/p&gt;</description></item><item><title>Re: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/49117.aspx</link><pubDate>Mon, 16 Nov 2009 19:51:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:49117</guid><dc:creator>blue_psychedelic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/49117.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=49117</wfw:commentRss><description>&lt;div class="ms-PostBody"&gt;&lt;div&gt;&lt;div class="ExternalClass60011288460C4E4D9D5C5C334F8D9BBA"&gt;
&lt;p&gt;(re-posted from a blog post on our private intranet...) &lt;/p&gt;&lt;p&gt;&amp;quot;Single Submit:disabling submit functionality in InfoPath&amp;quot; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;Forms developed in InfoPath for browser-SharePoint library
interaction generally have a submit button to send the xml file to the
library. Occasionally, this submit button needs to be disabled; maybe
until fields are filled out, or so users don&amp;#39;t accidentally hit it more
than once after it&amp;#39;s been submitted. Usually, a clever bit with a
hidden field in the data source, a rule, and some conditional
formatting will solve this error. For those not familiar, the set up
is: &lt;/p&gt;
&lt;ol&gt;&lt;li&gt;Have a hidden field (i.e., in the datasource but not on the form user interface) set to a default value of &lt;strong&gt;show&lt;/strong&gt;, &lt;strong&gt;enabled&lt;/strong&gt;, &lt;strong&gt;1&lt;/strong&gt;, etc. &lt;/li&gt;&lt;li&gt;A rule that stipulates once the submit button is pressed, change the value of the hidden field to the opposite value; &lt;strong&gt;hide&lt;/strong&gt;, &lt;strong&gt;disabled&lt;/strong&gt;, &lt;strong&gt;0&lt;/strong&gt;, etc. &lt;/li&gt;&lt;li&gt;Conditional formatting on the button that says when the hidden field is equal to &lt;strong&gt;disable etc.&lt;/strong&gt;, either hide or disable the button. &lt;/li&gt;&lt;li&gt;(this can also be done programmatically, which prefer, now that I&amp;#39;m an incipient programmer) &lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;And this is likely fine if end users have no need to reopen the xml
form once it&amp;#39;s been submitted to a SharePoint library. Because once you
open the form, the value in that hidden field is reset to the default.
I&amp;#39;m not sure what causes this, but it was the source of my agony for my
latest form, because very occasionally, an InfoPath form&amp;#39;s
functionality calls for the ability to not only submit a form, but to &lt;em&gt;disable&lt;/em&gt; the submit as well. &lt;/p&gt;
&lt;p&gt;The last form I created needed to submit the first time, but not the
second, third, or other times opened. And an added hitch: it had to be
a solution through the InfoPath designer user interface, not managed
code. (…Because forms with managed code need to have full trust, which
needed to be uploaded through central admin, which don&amp;#39;t play nice
(read: don&amp;#39;t work at all) with the versioning history capability that
was also necessary on this form) &lt;/p&gt;
&lt;p&gt;Here is my solution: &lt;/p&gt;
&lt;ol&gt;&lt;li&gt;A submit connection to my SharePoint library. &lt;/li&gt;&lt;li&gt;Unique file names that do not overwrite built into said submit
connection. (I used an xpath formula builder to concat a few of fields
in the form) &lt;/li&gt;&lt;li&gt;A secondary data connection to receive data from the library where
the forms are submitted. (Specifically, retrieving the unique file
name) &lt;/li&gt;&lt;li&gt;On the form, I have an expression box set to the value of the unique file name (through secondary data connection) &lt;/li&gt;&lt;li&gt;Conditional formatting on my button that stipulates when the unique
file name field in my secondary data source is equal to the xpath in
2), to hide/disable the button. &lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Viola! A form that has a submit button at the bottom during the
first instance of opening, but disappears the subsequent instances. &lt;/p&gt;
&lt;p class="MsoNormal" style="margin:0in 0in 10pt;"&gt;&lt;span style="font-size:8.5pt;color:black;line-height:115%;font-family:&amp;#39;Verdana&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;(It&amp;#39;s
also worth noting that this technique&amp;nbsp;only works on the current form.
If I hadn&amp;#39;t needed the versioning capability, I might never have
discovered&amp;nbsp;I had to change a setting inside my receive connection [to
get the unique file name]. I unchecked the &amp;quot;Include data for the active
form only&amp;quot; on the third&amp;nbsp;screen of the data connection wizard, and then
it worked beautifully.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Happy Developing!&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description></item><item><title>Re: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/47277.aspx</link><pubDate>Wed, 23 Sep 2009 14:49:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47277</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47277.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=47277</wfw:commentRss><description>&lt;p&gt;would you like to share your solution&lt;/p&gt;</description></item><item><title>Re: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/47273.aspx</link><pubDate>Wed, 23 Sep 2009 14:15:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47273</guid><dc:creator>blue_psychedelic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47273.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=47273</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Qazi Anis:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;well it seems u r doing the right thing, but somewhere the value of &amp;quot;disableBtns&amp;quot; gets reset somewhere. check the logic inspector to see where the value of &amp;quot;disableBtns&amp;quot; gets reset. That should help you.&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I couldn&amp;#39;t find a logically error, however, I did get it to work using another method.&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/47272.aspx</link><pubDate>Wed, 23 Sep 2009 13:22:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47272</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47272.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=47272</wfw:commentRss><description>&lt;p&gt;well it seems u r doing the right thing, but somewhere the value of &amp;quot;disableBtns&amp;quot; gets reset somewhere. check the logic inspector to see where the value of &amp;quot;disableBtns&amp;quot; gets reset. That should help you.&lt;/p&gt;</description></item><item><title>Re: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/47269.aspx</link><pubDate>Wed, 23 Sep 2009 12:53:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47269</guid><dc:creator>blue_psychedelic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47269.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=47269</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/infopathdev/images/icon-quote.gif"&gt; &lt;strong&gt;Qazi Anis:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;i would suggest the best option
would be to use your custom submit buttom and use conditional
formatting on that. say when you submit the form first time, set the
value of a field(say submit_check) to some value (say true).&lt;/p&gt;
&lt;p&gt;and on the button use conditional formatting &lt;/p&gt;
&lt;p&gt;(submit_check is equal to true)&lt;/p&gt;
&lt;p&gt;hide the button&lt;/p&gt;
&lt;p&gt;that should work for you&lt;/p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;p&gt;How do you diferentiate
between the first time the form is opened, and the second time it&amp;#39;s
opened, for viewing or editing? I ask because I did exactly what you
mentioned:&lt;/p&gt;&lt;p&gt;I had a hidden field in my datasource, &amp;quot;disableBtns&amp;quot;
(with a default value of false) that when the user filling out the form
clicked the submit button, a rule fired settting disableBtns to &amp;quot;true&amp;quot;.
Then I had conditional formatting on my custom submit button that said
that if disableBtns was equal to true, then hide and disable the
button. &lt;/p&gt;&lt;p&gt;&amp;nbsp;It worked--the first time. The second (third, fourth etc.) time the form was re-opened from the Share Point library where it was submitted, the button was back. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/47260.aspx</link><pubDate>Wed, 23 Sep 2009 07:44:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47260</guid><dc:creator>Qazi Anis</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47260.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=47260</wfw:commentRss><description>&lt;p&gt;i would suggest the best option would be to use your custom submit buttom and use conditional formatting on that. say when you submit the form first time, set the value of a field(say submit_check) to some value (say true).&lt;/p&gt;
&lt;p&gt;and on the button use conditional formatting &lt;/p&gt;
&lt;p&gt;(submit_check is equal to true)&lt;/p&gt;
&lt;p&gt;hide the button&lt;/p&gt;
&lt;p&gt;that should work for you&lt;/p&gt;</description></item><item><title>disabling submit feature for re-opened xml forms</title><link>https://www.infopathdev.com:443/forums/thread/47251.aspx</link><pubDate>Tue, 22 Sep 2009 20:07:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:47251</guid><dc:creator>blue_psychedelic</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/47251.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=47251</wfw:commentRss><description>There are probably hundreds of posts and solutions in forums everywhere answering this. But my situation is a bit different.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;We have an IP form submitting to a SharePoint library. Currently, employees can view the submitted xml files inside the library, and even make changes to the files and save it. The problem is that there is a submit button at the bottom that is confusing users. I want to disable it--but only when a form is successfully submitted, and only if the xml file generated by the submitted form is re-opened. (Basically, I don&amp;#39;t want users accidentally submitting the same form again when changes are made to the data--we have that being tracked with version history).&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Unfortunately, my attempts were unsuccessful. Every time I re-open a previously submitted form, the button is back, no matter how many times I tell it to go away using conditional formatting, hidden fields, rule etc.&amp;nbsp; I&amp;#39;m perfectly aware that I can utilize the Me.[New] Property with managed code, but I was hoping for an IP solution.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;Is there a way to tap into the xmlform.new property through rules or conditional formatting? Or is there a solution I missed?&lt;br /&gt;</description></item></channel></rss>