Custom date field - InfoPath Dev
in

InfoPath Dev

Custom date field

Last post 05-20-2013 06:05 AM by signalwarrant. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-19-2013 11:47 PM

    Custom date field

    I need a text box with a default value of today() + 4. The trick is I need the date to change at noon instead of midnight. Anyone know if this is possible?

    The scenario is if I submit a support request  between 0001 and 1159AM on Monday the earliest my request will be processed is Thursday, if it's submitted at 1200pm or later on Monday the request will be processed on Friday.

    Any ideas? 

  • 05-20-2013 05:35 AM In reply to

    I don't think you want a default value. You probably want on load rules. On load:

    1. Call now() and populate a field with the time (something like this might work: substring-after(now(),"T"). This rule does not have a condition.

    2a. Condition: time > noon. Action: Set the field to today() + 5. You could use addDays.

    2b. Condition: time < noon. Action: Set the field to today() + 4.

    Hope this helps get you on the right track!

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


  • 05-20-2013 06:05 AM In reply to

    Well that was much easier than I was trying to make it.

    Thanks brother, I appreciate it.

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