<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Disable submit (and message)</title><link>https://www.infopathdev.com:443/forums/thread/77638.aspx</link><pubDate>Mon, 16 Apr 2012 22:11:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77638</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77638.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77638</wfw:commentRss><description>&lt;p&gt;You bet - I&amp;#39;m happy you got it all sorted out!&lt;/p&gt;</description></item><item><title>Re: Disable submit (and message)</title><link>https://www.infopathdev.com:443/forums/thread/77637.aspx</link><pubDate>Mon, 16 Apr 2012 22:00:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77637</guid><dc:creator>Jay@Work</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77637.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77637</wfw:commentRss><description>&lt;p&gt;Perfect thanks. Problem was that I was setting the filename which included max(id) in the submit data connection.&lt;/p&gt;
&lt;p&gt;So I made sure that the submit used the vouchernumber field to name the file and not try to recalculate the max(id) for each submit.&lt;/p&gt;
&lt;p&gt;I now have 2 actions on form submit.&lt;br /&gt;If vouchernumber is blank&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; create voucher number and populate field&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; submit the form&lt;/p&gt;
&lt;p&gt;If vouchernumber is not blank&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; submit the form&lt;/p&gt;
&lt;p&gt;I have allowed overwriting in the form library and now all works great.&lt;br /&gt;Thanks for all the help&lt;/p&gt;</description></item><item><title>Re: Disable submit (and message)</title><link>https://www.infopathdev.com:443/forums/thread/77546.aspx</link><pubDate>Fri, 13 Apr 2012 00:55:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77546</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77546.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77546</wfw:commentRss><description>&lt;p&gt;You have multiple actions on a single rule.&lt;/p&gt;
&lt;p&gt;I am suggesting spliting some of those actions out onto new rules. &lt;/p&gt;
&lt;p&gt;See the New button in your screenshot? Click it and select Action.&lt;/p&gt;
&lt;p&gt;Your new action rule can have a condition, like &amp;quot;VoucherNumber is blank&amp;quot; - and then can run your query and set your voucher number field.&lt;/p&gt;
&lt;p&gt;Your other rule can perform the actual submit.&lt;/p&gt;
&lt;p&gt;Does this make sense?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Disable submit (and message)</title><link>https://www.infopathdev.com:443/forums/thread/77545.aspx</link><pubDate>Thu, 12 Apr 2012 23:32:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77545</guid><dc:creator>Jay@Work</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77545.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77545</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m not sure how to if/else in the form submit or how to add multiple rules if possible.&lt;br /&gt;I already have a textbox called voucher number which is populated when the file is first submitted so I could query that but how would I say &lt;br /&gt;if vouchernumber is not blank&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; submit form&lt;br /&gt;else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; create the filename&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; populate vouchernumber&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; submit form&lt;br /&gt;end if&lt;/p&gt;
&lt;p&gt;Which is what I&amp;#39;d do in other environments.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve added an image of my current form submit rule - hopefully this will work as it&amp;#39;s a shared link from skydrive&lt;/p&gt;
&lt;p&gt;&lt;a href="https://skydrive.live.com/redir.aspx?cid=c18b04d5bb544db4&amp;amp;resid=C18B04D5BB544DB4!151&amp;amp;parid=C18B04D5BB544DB4!136&amp;amp;authkey=!AJf5O3n6x0QXp_w"&gt;https://skydrive.live.com/redir.aspx?cid=c18b04d5bb544db4&amp;amp;resid=C18B04D5BB544DB4!151&amp;amp;parid=C18B04D5BB544DB4!136&amp;amp;authkey=!AJf5O3n6x0QXp_w&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Disable submit (and message)</title><link>https://www.infopathdev.com:443/forums/thread/77543.aspx</link><pubDate>Thu, 12 Apr 2012 22:40:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77543</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77543.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77543</wfw:commentRss><description>&lt;p&gt;Yeah, that is why I am saying do the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Add a field to the main data source called something like &amp;quot;FileName&amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In your submit connection, use that field for your form name, and select the &amp;quot;overwrite existing&amp;quot; checkbox&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;In your submit rules, where you have the rule to query for your data for the ID and set the file name field - only do this if FileName is blank - add a condition.&lt;/div&gt;&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Then your form gets named OP13 and keeps that name no matter how many times they click submit.&lt;/div&gt;&lt;/li&gt;&lt;/ol&gt;</description></item><item><title>Re: Disable submit (and message)</title><link>https://www.infopathdev.com:443/forums/thread/77542.aspx</link><pubDate>Thu, 12 Apr 2012 22:27:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77542</guid><dc:creator>Jay@Work</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77542.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77542</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes to a sharepoint library. The problem with this is that when the form is submitted I am getting max(id) from the list to name my file so if the submit the file is named (for example) OP12.xml.&lt;br /&gt;If they make an amendment and submit again the file is saved as OP13.xml so we have 2 versions.&lt;br /&gt;I&amp;#39;ve got around it by setting a flag to true when it&amp;#39;s first submitted and then checking this on submit to disable multiple submits but the form created alert pops up regardless.&lt;br /&gt;It is very likely that &amp;quot;certain&amp;quot; users will get confused and submit instead of save if they make edits after the first submit&lt;/p&gt;</description></item><item><title>Re: Disable submit (and message)</title><link>https://www.infopathdev.com:443/forums/thread/77540.aspx</link><pubDate>Thu, 12 Apr 2012 22:17:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77540</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77540.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77540</wfw:commentRss><description>&lt;p&gt;Hey there -&lt;/p&gt;
&lt;p&gt;You are submitting to SharePoint Library? When you set up your submit connection, you have the option to overwrite existing. If you ensure your file name for the submit will be unique, you can safely do this - take the whole saving thing off the table - users can just submit, and their updates update the existing item.&lt;/p&gt;
&lt;p&gt;You have to make sure you set the file name to be something that won&amp;#39;t end up set again - so, thinking back on the other thread you and I were talking in, if you are using some logic to set your file name field, you&amp;#39;d only want to run it if the field were blank, you don&amp;#39;t want to be accidentally creating dupes....&lt;/p&gt;</description></item><item><title>Disable submit (and message)</title><link>https://www.infopathdev.com:443/forums/thread/77496.aspx</link><pubDate>Thu, 12 Apr 2012 03:46:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:77496</guid><dc:creator>Jay@Work</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/77496.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=77496</wfw:commentRss><description>&lt;p&gt;Problem: User submits a form. User then changes some data and presses submit again. 2 versions of the form are now in the library. Same problem if a user opens a previously submitted form, makes changes and resubmits.&lt;br /&gt;Solution: I added a checkbox field and set its value to TRUE as a submit option. Under submit options I check to see if isSubmitted =&amp;nbsp;false and if so I run the submit actions.&lt;/p&gt;
&lt;p&gt;This seems to work fine and best I can tell no submit actions are happening. BUT the browser still pops up with the message voucher created successfully (which is the text I specified for when the form is submitted)&lt;br /&gt;Is there a way to stop this message or even better give a message to say it&amp;#39;s already been submitted.&lt;/p&gt;
&lt;p&gt;Or even even better! Make the submit button disabled for a form that has been submitted and still open (or re-opened at a later date)?&lt;br /&gt;Any edits after submission need to be a save, updating the original submitted form&lt;/p&gt;</description></item></channel></rss>