<?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: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/63052.aspx</link><pubDate>Tue, 11 Jan 2011 13:20:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63052</guid><dc:creator>shark59</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63052.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63052</wfw:commentRss><description>&lt;p&gt;What I have is a request form with 3 buttons: Submit, Approve and Reject.
The first thing I have to achieve is to hide Approve and Reject on the initial
load of the form. For the Submit button under the Properties / Action I picked
&amp;quot;Submit&amp;quot; option, but for the Approve and Reject buttons I picked
&amp;quot;Rules and Custom Code&amp;quot;. I&amp;#39;m not sure if this is the right way, but I
picked these options. &lt;/p&gt;&lt;p&gt;

&lt;span style="font-size:11pt;line-height:115%;font-family:&amp;#39;Calibri&amp;#39;,&amp;#39;sans-serif&amp;#39;;"&gt;When the form is getting loaded I detect the
user and populate the Requester field with the value from SharePoint using suggestion from your article. I also
have 4 Person/Group picker controls for the Employee, Manager Level 1, level 2
and level 3. The Requester selects manually (???) all 3 managers using search in the
Person/Group picker control and also enters some required fields on the form as
well for the requested item. When everything is entered, Requester clicks the
Submit button and email is getting send to the Manager Level 1. At this time I
need to hide the Submit button and make sure that Approve and Reject buttons
appear on the form. So when the level 1 manager receives the email he/she
doesn&amp;#39;t see the Submit button, but sees the Approve and Reject buttons. When
level 1 manager approves the request, the email is getting generated and sent
to manager level 2 and from this manager, when request is approved it goes to
manager level 3. This is basically the description of the main functionality. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you for all your help!!!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/63040.aspx</link><pubDate>Tue, 11 Jan 2011 03:45:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63040</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63040.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63040</wfw:commentRss><description>&lt;p&gt;I can&amp;#39;t stress enough how simple it is.&amp;nbsp; It&amp;#39;s just logic - black and white.&amp;nbsp; Share with us what your conditions were, and we can help you fix it.&amp;nbsp; Maybe it&amp;#39;s just not clicking, but once you see it, it will make a ton of sense.&amp;nbsp; This concept is critical for any InfoPath development.&amp;nbsp; Without mastering/understanding this, you will be severely limited.&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/63037.aspx</link><pubDate>Tue, 11 Jan 2011 01:34:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63037</guid><dc:creator>shark59</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63037.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63037</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Clayton,&lt;/p&gt;&lt;p&gt;Thanks a lot for the advise. I was actually tried to use some conditions, but it works not the way I wanted. But I will use your suggestion about the name of the form.&lt;/p&gt;&lt;p&gt;Thanks again. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/63033.aspx</link><pubDate>Mon, 10 Jan 2011 22:48:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63033</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63033.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63033</wfw:commentRss><description>&lt;p&gt;You just add conditional formatting that says, &amp;quot;If Field is equal to Value, then hide this control.&amp;quot;&amp;nbsp; That will hide the button when whatever field is equal to whatever value.&amp;nbsp; The field and value are up to you.&amp;nbsp; THere has to be something in the form that matches your logic so that the button knows when to disable itself.&amp;nbsp; We can&amp;#39;t tell you what field or value that is, but it&amp;#39;s all very, very easy.&amp;nbsp; Just choose to set a field&amp;#39;s value to a certain value at whatever point in time it needs to be set.&amp;nbsp; If that&amp;#39;s upon initial submit, then add a rule to your submit button that sets a hidden field to some value, and compare against that value in your condition on the submit button.&lt;/p&gt;
&lt;p&gt;The way I do it is I always auto-generate my filenames by using the article on my blog.&amp;nbsp; Then, I check the strFilename field to see if it&amp;#39;s blank or not.&amp;nbsp; If it&amp;#39;s blank, I know it&amp;#39;s a new form, so I don&amp;#39;t hide the submit button.&amp;nbsp; If it&amp;#39;s NOT blank, then I know it has been submitted, and I use that fact to make decisions on other fields/views/buttons.&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/63032.aspx</link><pubDate>Mon, 10 Jan 2011 22:38:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63032</guid><dc:creator>shark59</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63032.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63032</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Clayton,&lt;/p&gt;&lt;p&gt;The problem is that I can&amp;#39;t find a proper condition to use to hide the Submit button.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/63031.aspx</link><pubDate>Mon, 10 Jan 2011 22:18:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63031</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63031.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63031</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;shark59:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Thank you for your answer. What I actually have is a form with 3 buttons: Submit, Approve and Reject. On the initial load of the form I need to hide the Approve and Reject buttons. After Submit button is clicked the email is getting generated and the Submit button have to hidden. When the form gets to the 1st, 2nd or 3rd level managers the Submit button is no longer visible, but Approve and Reject buttons are present.&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;Ok, so what&amp;#39;s the problem?&amp;nbsp; All of that sounds normal and easy.&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/63030.aspx</link><pubDate>Mon, 10 Jan 2011 22:15:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63030</guid><dc:creator>shark59</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63030.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=63030</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your answer. What I actually have is a form with 3 buttons: Submit, Approve and Reject. On the initial load of the form I need to hide the Approve and Reject buttons. After Submit button is clicked the email is getting generated and the Submit button have to hidden. When the form gets to the 1st, 2nd or 3rd level managers the Submit button is no longer visible, but Approve and Reject buttons are present.&lt;br /&gt;&lt;br /&gt;Thank you.&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/62940.aspx</link><pubDate>Mon, 10 Jan 2011 00:29:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62940</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62940.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=62940</wfw:commentRss><description>&lt;p&gt;Do they actually disappear, or are they not there on your default view?&amp;nbsp; You need to make sure they are visible when the form is submitted to email.&amp;nbsp; I would think you would be doing one of 2 things:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Switching to a view that contains the buttons without conditional formatting and switching to this view before the email submit action occurs (on button click, but before the submit), or&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;You have conditional formatting on the approve/reject buttons that cause them not to be visible in a new form but that you&amp;#39;re setting the value of a hidden field to make them visible, and this value is being set BEFORE THE EMAIL SUBMIT occurs (within the rules of the button)&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;
&lt;p&gt;Either scenario should work, but are you attaching the template or sending the active view (both are options in email submits)?&amp;nbsp; If sending the form template, then it always opens to the default view, so you have to ensure the buttons are on the default view and that they are visible based off the current status of the form.&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/62917.aspx</link><pubDate>Sat, 08 Jan 2011 05:21:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:62917</guid><dc:creator>shark59</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/62917.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=62917</wfw:commentRss><description>&lt;p&gt;Patrick,&lt;/p&gt;&lt;p&gt;Your advise in above posting is very good. But I face a different challenge. I have 3 buttons: Submit, Approve and Reject. On the initial load of the form I need to hide Approve and Reject button. After user clicks Submit button I successfully generate an email, but my all 3 buttons are not on the form after the first email recipient receives it. I have to hide Submit and show Approve and Reject buttons. Can you please give me an advise how to hide the button and why do you think they disappear when I send an eamil?&lt;/p&gt;&lt;p&gt;Thank you. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/39514.aspx</link><pubDate>Fri, 13 Mar 2009 16:45:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39514</guid><dc:creator>bravo21</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39514</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Patrick,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thank you very much. I found exactly what you were talking about and it works perfectly!&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/39427.aspx</link><pubDate>Wed, 11 Mar 2009 22:52:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39427</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39427.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39427</wfw:commentRss><description>&lt;p&gt;Hey Bravo21 and welcome!&lt;/p&gt;
&lt;p&gt;Yes, just add an action after submit to set a field value that controls whether the button is enabled/disabled. If you don&amp;#39;t have a field value in your form to use, you can add an XML resource file with a single entry &amp;lt;submitted&amp;gt;&amp;lt;/submitted&amp;gt; and set that secondary data source value. Then, just add conditional formatting to disable the button if that value is set.&lt;/p&gt;
&lt;p&gt;Cheers!&lt;/p&gt;</description></item><item><title>Disable submit button</title><link>https://www.infopathdev.com:443/forums/thread/39423.aspx</link><pubDate>Wed, 11 Mar 2009 19:54:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:39423</guid><dc:creator>bravo21</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/39423.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=39423</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;Is it possible to disable the submit button after it is pressed?&lt;/p&gt;&lt;p&gt;I have a few forms that take a few seconds to submit and I do not want a user thinking that they did not press the button. I would like to just disable the submit button after the first time it is pressed so I don&amp;#39;t receive duplicate data.&lt;/p&gt;&lt;p&gt;Thank you,&lt;/p&gt;&lt;p&gt;brav &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>