CLear Date with Rule - InfoPath Dev
in

InfoPath Dev

CLear Date with Rule

Last post 06-14-2009 08:12 PM by PAWInfo. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-14-2009 05:19 PM

    • PAWInfo
    • Top 200 Contributor
    • Joined on 09-14-2008
    • Melbourne, Australia
    • Posts 52

    CLear Date with Rule

    Hello,

     I have a check box that asks:

    [] Estimates Needed

    If the user selects it, it enables a Date Picker field.

    Now, if a user picks a date, then decides to uncheck Estimates Needed, I want to clear the date.

    I went to Estimates Needed checkbox Rule and added the rule.

    Now, it gives me this error:

    '#PCDATA' is in nil content: <{http://schemas.microsoft.com/office/infopath/2003/myXSD/2008-08-20T00:21:50}DateNeeded>.

    Is there a way to clear a Date field?

  • 06-14-2009 07:16 PM In reply to

     I can't seem to reproduce your error.  What was the rule you used, precisely?  If I use a rule to set a date field to a blank value, it seems to work without any problems (see the attached XSN).

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 06-14-2009 08:12 PM In reply to

    • PAWInfo
    • Top 200 Contributor
    • Joined on 09-14-2008
    • Melbourne, Australia
    • Posts 52

    Seems I had two rules.  One in receiving field, and one in [] field.  Once I removed the one in the receiving field, which was incorrect.

     The [] works and clears the date when false.

    By you saying that, I realized I had put in the 2nd rule in the wrong field.

     Thanks! 

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