<?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: Showing an alert and closing the form</title><link>https://www.infopathdev.com:443/forums/thread/19649.aspx</link><pubDate>Mon, 07 May 2007 23:07:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19649</guid><dc:creator>Terry G Phillips</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19649.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=19649</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;Yes&lt;/strong&gt; - there is a hack way around this. I perform all my submits in code, to both a SQL db and SPList.&lt;/p&gt;&lt;p&gt;Set your: Tool - Submit Options to&amp;nbsp;send data to a fake webservice. Then under Advanced, choose After submit: &amp;quot;Close the form&amp;quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;The webform will go away.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Too bad, this&amp;nbsp;won&amp;#39;t work when opened with IP...&lt;/p&gt;&lt;p&gt;&amp;nbsp;Hope this helps,&lt;/p&gt;&lt;p&gt;Terry&lt;/p&gt;</description></item><item><title>Re: Showing an alert and closing the form</title><link>https://www.infopathdev.com:443/forums/thread/19594.aspx</link><pubDate>Fri, 04 May 2007 22:03:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19594</guid><dc:creator>stephaneey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19594.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=19594</wfw:commentRss><description>&lt;p&gt;You could try to switch to another view. You build a view with an error message textbox and a back button to get back to your previous view. As soon as an error occurs, you set a value to a field that triggers a rule that switchs view.&lt;/p&gt;&lt;p&gt;Would be better to be able to display an alert box but....&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Showing an alert and closing the form</title><link>https://www.infopathdev.com:443/forums/thread/19439.aspx</link><pubDate>Tue, 01 May 2007 05:31:59 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19439</guid><dc:creator>mshukla</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19439.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=19439</wfw:commentRss><description>Browser enabled forms are really restrictive in their functionality. I am struggling with some of that right now. Alerts are not allowed and microsoft recommends using hidden sections to display messages. i.e. create a hidden section with a text box with message and keep it hidden until you want to display it on some trigger. The problem I am trying to figure out is how to focus the user&amp;#39;s attention to the section if its a long form and you may have to scroll to it.</description></item><item><title>Re: Showing an alert and closing the form</title><link>https://www.infopathdev.com:443/forums/thread/19121.aspx</link><pubDate>Mon, 16 Apr 2007 17:38:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19121</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19121.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=19121</wfw:commentRss><description>&lt;p&gt;Sorry -- should have noticed you said you were using browser form. There&amp;#39;s a lot of functionality not available to the browser forms. Why you can&amp;#39;t display a message box (basic JavaScript alert() functionality) is beyond me.&lt;/p&gt;&lt;p&gt;Good luck!&lt;/p&gt;</description></item><item><title>Re: Showing an alert and closing the form</title><link>https://www.infopathdev.com:443/forums/thread/19106.aspx</link><pubDate>Mon, 16 Apr 2007 11:10:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19106</guid><dc:creator>stephaneey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=19106</wfw:commentRss><description>&lt;p&gt;UP!&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I can confirm now that this is not possible to use MessageBox which sounded really wierd to me but....since the MOSS admin interface won&amp;#39;t let you upload a form referencing system.windows.forms. Moreover, I think that this is actually not possible to close a &lt;strong&gt;browser-enabled&lt;/strong&gt; form trhough the code. Having a look at &lt;a href="http://download.microsoft.com/download/0/9/c/09cda3f2-6d3d-4082-aec5-9a62b7679ecf/InfoPathObjectModelMap.pdf"&gt;http://download.microsoft.com/download/0/9/c/09cda3f2-6d3d-4082-aec5-9a62b7679ecf/InfoPathObjectModelMap.pdf&lt;/a&gt;&amp;nbsp;clearly demonstrates that the &lt;strong&gt;Close&lt;/strong&gt; &amp;amp; the &lt;strong&gt;Quit&lt;/strong&gt; methods of xmlform is &lt;strong&gt;unavailable&lt;/strong&gt; to browser forms. I guess that Microsoft didn&amp;#39;t implement another way to close the form....&lt;/p&gt;&lt;p&gt;This is really a pity to notice that such basic functionality are not implementable in browser-forms except by using rules which are neither available in the code behind....I think I&amp;#39;m gonna chose another product than infopath for future developments. Moreover, most of the documentation around forms services is wrong or suspicious.&lt;/p&gt;</description></item><item><title>Re: Showing an alert and closing the form</title><link>https://www.infopathdev.com:443/forums/thread/4456.aspx</link><pubDate>Fri, 13 Apr 2007 22:23:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4456</guid><dc:creator>stephaneey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4456.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=4456</wfw:commentRss><description>Hello Greg,&lt;br /&gt;&lt;br /&gt;I'm currently at home so I don't have access to infopath but I tried already to use MessageBox but this is not allowed in browser forms. When trying to upload it onto the Sharepoint server, there is error stating that system.windows.forms is not allowed in browser-enabled forms.&lt;br /&gt;&lt;br /&gt;Regarding XmlForm, I don't remember to have seen it but I'll check it on Monday.&lt;br /&gt;&lt;br /&gt;Thanks for your answer anyway :)</description></item><item><title>Re: Showing an alert and closing the form</title><link>https://www.infopathdev.com:443/forums/thread/4455.aspx</link><pubDate>Fri, 13 Apr 2007 16:38:08 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4455</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4455.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=4455</wfw:commentRss><description>There is a Close() method on the XmlForm object.&lt;br /&gt;&lt;br /&gt;For the alert, you just pop up a MessageBox.</description></item><item><title>Showing an alert and closing the form</title><link>https://www.infopathdev.com:443/forums/thread/4440.aspx</link><pubDate>Fri, 13 Apr 2007 15:08:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:4440</guid><dc:creator>stephaneey</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/4440.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=4440</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;It sounds stupid but I've not managed to find the way to send an alert message to the user nor to close the form by code. &lt;br /&gt;&lt;br /&gt;I know I can achieve that using rules but in my case, rules aren't appopriate.&lt;br /&gt;&lt;br /&gt;I'm using infopath 2007 browser-enabled forms. I've seen some doc about the XDocument object that existed in infopath2003 (which I don't know) but it does not look to work the same way in 2007.&lt;br /&gt;&lt;br /&gt;Any help would be greatly appreciated.&lt;br /&gt;&lt;br /&gt;Thanks</description></item></channel></rss>