Set default value depending on actual time. - InfoPath Dev
in

InfoPath Dev

Set default value depending on actual time.

Last post 03-06-2015 07:05 AM by Hilary Stoupa. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-03-2015 06:11 AM

    • MaskC
    • Not Ranked
    • Joined on 03-03-2015
    • Posts 2

    Set default value depending on actual time.

    Hello everyone,

    I'm trying to set a default value in a DropDown box depending on the current time. (substring-after(now(), "T"))

    To be more specific, I would like my DropDown box to have as default value

    • "AM" if the current time is between 06:00:01 and 12:00:00.
    • "PM" if the current time is between 12:00:01 and 18:00:00.
    • "NIGHT" if the current time is between 18:00:01 and 06:00:00.

    I tried with "Rules" and "Set default value" but can't figure out a solution.

    Thanks for help!

    Filed under: , ,
  • 03-06-2015 02:10 AM In reply to

    • MaskC
    • Not Ranked
    • Joined on 03-03-2015
    • Posts 2

    Re: Set default value depending on actual time.

     Hey!
    Thanks for your involvement!


  • 03-06-2015 07:05 AM In reply to

    Re: Set default value depending on actual time.

    Hi - can you attach a sample form showing what you've currently tried to the Options tab? Off-hand, I'd say use rules for this, so you can use conditions.

    Hilary Stoupa

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