OnLoad event for date picker field - InfoPath Dev
in

InfoPath Dev

OnLoad event for date picker field

Last post 05-21-2008 05:51 AM by mattb. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-20-2008 08:15 AM

    • mattb
    • Not Ranked
    • Joined on 05-20-2008
    • Posts 15

    OnLoad event for date picker field

    Hello, this is my first post here.  Looks like a great forum!

    I'm looking for the proper code for an OnLoad Event to blank my datepicker field called ChangeDate.  Any help would be appreciated.

  • 05-20-2008 09:58 PM In reply to

    Re: OnLoad event for date picker field

    I would go into form options.

    Open and go to rules and set your field with an action.

    You can obviously set the default. I will assume you are reset a date when a non-new form is edited.

    So you may want a conditional rule which checks this or defaults to today.

  • 05-21-2008 05:51 AM In reply to

    • mattb
    • Not Ranked
    • Joined on 05-20-2008
    • Posts 15

    Re: OnLoad event for date picker field

    I can set a rule but there is no condition that applies when the form is opened.

     Context:
    Previously completed forms will be opened and modified.  I want the date picker (which is a required field in my form) to be cleared evert time the form is opened to avoid submission with the previous date.

    The OnLoad event script seems to be the right place but I'm not sure of the proper syntax required. 

    Thank you.

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