Time control - InfoPath Dev
in

InfoPath Dev

Time control

Last post 11-25-2008 08:29 PM by Anuma. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-25-2008 12:24 PM

    Time control

    Hey everyone, I am writing a form in which once the user selects a check box it populates the current time in another field and greys out totally once save or submit is pressed, thing is I cannot get it to just display the time once it is checked, everything I try gets date & time using the "now()" value also want to lock the check box once it has been checked. any info would be appreciated.

  • 11-25-2008 01:30 PM In reply to

    Hi, and welcome:

    If you are filling field, and it is of a datetime data type, there should be a format button under the text box properties that you can set to not display the date but to display the time. If what you want is a text value of just the time, you can use substring-after to get everything after 'T' in now. There is a sample here that shows how to use substring-before and -after to get date and time parts.

    Hilary Stoupa

  • 11-25-2008 08:29 PM In reply to

    • Anuma
    • Top 25 Contributor
      Female
    • Joined on 07-20-2005
    • India
    • Posts 525

    Hi,

     Instead of "Now()" use "substring-after(now(), "T")" formula to get only Time.

    Anuma Chinthapalli /
    http://www.GGKTech.com
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.