Switch view depend on current date and time - InfoPath Dev
in

InfoPath Dev

Switch view depend on current date and time

Last post 12-16-2011 10:20 AM by Anson Hidajat. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 12-16-2011 08:07 AM

    Switch view depend on current date and time

    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
  • 12-16-2011 10:20 AM In reply to

    Re: Switch view depend on current date and time

    Hi there,

    You can set a few form load rules to accomplish this behavior.  It is located in the Data tab --> Form Load. From here add an action rule and set your condition that what you want.  Remember for dateTime fields to use the now() function and not the today() function.  Then as the action, you can set it to swtich to the proper view.  You can repeat this for every view you want to change to on load.

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.