<?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: XmlFormView and conditional submissions</title><link>https://www.infopathdev.com:443/forums/thread/22863.aspx</link><pubDate>Tue, 04 Sep 2007 13:36:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22863</guid><dc:creator>eeyore145</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22863.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22863</wfw:commentRss><description>&lt;p&gt;Thanks for the suggestion.&amp;nbsp; I actually came to that conclusion myself (thought about writing code in the InfoPath object itself) but we decided against that route because of potential deployment problems.&amp;nbsp; Instead, I have actually created a &amp;quot;read only&amp;quot; template or basically we now migrate InfoPath documents into a &amp;#39;read only&amp;quot; folder when the original document is requested.&amp;nbsp; Therefore, the XmlFormView will just pick up the save and submit status of the underlying form and that works great.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks for the feedback.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;MK&lt;/p&gt;</description></item><item><title>Re: XmlFormView and conditional submissions</title><link>https://www.infopathdev.com:443/forums/thread/22848.aspx</link><pubDate>Tue, 04 Sep 2007 06:33:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22848</guid><dc:creator>davidair</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22848.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22848</wfw:commentRss><description>&lt;p&gt;One idea would be to set your submit to &amp;quot;perform custom action using Code&amp;quot;. It&amp;#39;s a bit more work and if your current template has no code deployment will become that much harder. However when you submit using code you can cancel submit based on some conditions, namely the ones you have.&lt;/p&gt;</description></item><item><title>XmlFormView and conditional submissions</title><link>https://www.infopathdev.com:443/forums/thread/22826.aspx</link><pubDate>Sun, 02 Sep 2007 05:35:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22826</guid><dc:creator>eeyore145</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22826.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=22826</wfw:commentRss><description>&lt;p&gt;Hello all this is my first post in the forum:&lt;/p&gt;
&lt;p&gt;I have come across a problem that seems to have no solution.&amp;nbsp; I am under a tight deadline and I am looking for any potential way to accomplish what I need.&amp;nbsp; This is the current situation.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;We are using InfoPath 2007 Forms Server and MOSS 2007.&amp;nbsp; For the current project I am on, we are leveraging the XmlFormView to display infopath documents in a SharePoint site.&amp;nbsp; This works great besides one problem.&amp;nbsp; One of the requirements is to view the ORIGINAL document and the current document (the&amp;nbsp;form library has versioning enabled, etc.).&lt;/p&gt;
&lt;p&gt;As you can probably imagine when the end user views the original document I do not want the save button and submit button to appear.&amp;nbsp; I do need to use the view functionality (there are several different views in the InfoPath document) and the other components of the XMLFormView control.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I have figured out how to use the EditingStatus and XMLLocation properties of the control to render different InfoPath documents based on the end user&amp;#39;s selection.&amp;nbsp;Also, through the Options property of the XMLFormView control I can disable the&amp;nbsp;save and save as buttons via the &amp;quot;DisableSave&amp;quot;&amp;nbsp;value.&amp;nbsp;But what I have not been able to figure out is how to disable or hide the submit button when the end user is viewing the &amp;quot;original&amp;quot; version of the form.&amp;nbsp; This needs to be in read only format.&lt;/p&gt;
&lt;p&gt;1) By browsing through google groups and the internet I see references to using conditional formatting.&amp;nbsp; But this is a massive form and I can&amp;#39;t conditionally make every field read only and this still doesn&amp;#39;t address the issue of disabling or hiding the actual &amp;quot;submit&amp;quot; button in the XmlFormView toolbar.&lt;/p&gt;
&lt;p&gt;2) I don&amp;#39;t have the option of going through the tools menu to manually turn off the submission characteristics.&amp;nbsp; Basically, the core xsn template should allow for this behavior, but through programmatic means we move the &amp;quot;original&amp;quot; document to a seperate document library.&amp;nbsp; Then the XmlFormView control will show the &amp;quot;current&amp;quot; document from the active document library, or the &amp;quot;original&amp;quot; document from the secondary document library.&lt;/p&gt;
&lt;p&gt;Does anyone have any idea how to disable or hide the submit button of the XmlFormView control?&amp;nbsp; Or how to set up a rule that disables the actual default submit button within the InfoPath form?&amp;nbsp; I have no problem creating a rule in the template (such as using a secondary xml file as a datasource and somehow using that to turn off submission ability) and using an XMLNavigator to switch the read only properties, etc...but I can&amp;#39;t find a way to do it via this means either.&lt;/p&gt;
&lt;p&gt;Also, at this stage in the project I can&amp;#39;t create my own submit button, we need to use the default capabilities of InfoPath, but I can&amp;#39;t find any way to disable or hide the submit button.&lt;/p&gt;
&lt;p&gt;Does anyone have any ideas, even if involves thinking &amp;quot;outside of the box&amp;quot;?&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;MK&lt;/p&gt;</description></item></channel></rss>