Customizing the Date Field - InfoPath Dev
in

InfoPath Dev

Customizing the Date Field

Last post 09-22-2008 06:07 AM by jrudolph. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-19-2008 07:17 AM

    • jrudolph
    • Top 150 Contributor
      Male
    • Joined on 07-02-2008
    • Orlando, FL
    • Posts 67

    Customizing the Date Field

    I need to have the default value of a Date field be the first day of the month prior to the current day.

    For example when the form is opened on September 19, 2008. I want the default value in the date field that shows up to be August 1, 2008.

    I currently have a fix for this where I use the formula

    addDays(today()), -28)

    this works for now, but because of internal purposes it would be great if there was a way to have the box auto fill with the first day of the previous month.

  • 09-19-2008 03:40 PM In reply to

    Re: Customizing the Date Field

    Hi:

    I just posted a sample for this here. Basically, it uses a conditional default for a 'helper' field called month (used for the sake of simplicity) and then rules to set the date. I tested it for January values as well.

    Full information and some instructions for use and testing are in the form. Check it out and see if it helps you.

    Hilary Stoupa

    Filed under:
  • 09-22-2008 06:07 AM In reply to

    • jrudolph
    • Top 150 Contributor
      Male
    • Joined on 07-02-2008
    • Orlando, FL
    • Posts 67

    Re: Customizing the Date Field

    Thank for the help, it appears to be working perfectly.

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