<?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: Switch view depend on current date and time</title><link>https://www.infopathdev.com:443/forums/thread/73036.aspx</link><pubDate>Fri, 16 Dec 2011 18:20:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73036</guid><dc:creator>Anson Hidajat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73036.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73036</wfw:commentRss><description>&lt;p&gt;Hi there,&lt;/p&gt;&lt;p&gt;You can set a few form load rules to accomplish this behavior.&amp;nbsp; It is located in the Data tab --&amp;gt; Form Load. From here add an action rule and set your condition that what you want.&amp;nbsp; Remember for dateTime fields to use the now() function and not the today() function.&amp;nbsp; Then as the action, you can set it to swtich to the proper view.&amp;nbsp; You can repeat this for every view you want to change to on load.&lt;/p&gt;</description></item><item><title>Switch view depend on current date and time</title><link>https://www.infopathdev.com:443/forums/thread/73026.aspx</link><pubDate>Fri, 16 Dec 2011 16:07:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:73026</guid><dc:creator>MichalR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/73026.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=73026</wfw:commentRss><description>Hi,
I need to switch view on form load depend on current date and time. I have and variable with stored date and time. I need to switch to view A if the variable value is less than current date and time and to view B if the variable value is more than or equal current date and time ?

Somebody can give me some advice ?

Thank you</description></item></channel></rss>