How to remove date from DateTime picker? - InfoPath Dev
in

InfoPath Dev

How to remove date from DateTime picker?

Last post 11-30-2010 10:19 AM by augustwind. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-29-2010 11:47 AM

    How to remove date from DateTime picker?

    (v 2010) 

    I've got a row with a checkbox - - if it's checked, the DateTimePicker is enabled - if it's not checked, the DTP is disabled - - that part's working.

    But, for the life of me, I haven't been able to figure out the following.

    A user checks the checkbox, so the DTP is enabed
    Then, he chooses a date, to populate the DTP.
    Then, he changes his mind and unchecks the checkbox.
    I need to remove the date that was chosen - I've tried using the 'Set a Field's value' - and left the value blank, tried adding 2 single quotes, tried adding 2 double quotes, but nothing works.

    How do I remove the date from the 'textbox' portion of the DTP with a rule?

  • 11-30-2010 03:47 AM In reply to

    Re: How to remove date from DateTime picker?

    I wonder if there's something incorrect in the rules. You mention "row"; are you working in a repeating table?

    I'm attaching a template where I clear the fields by setting the value to blank via button click. This seems to work for me. Can you elaborate on the result you see when using a similar rule?

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


  • 11-30-2010 10:19 AM In reply to

    Re: How to remove date from DateTime picker?

    The problem wasn't the rule, but where the rule was

    I was trying to put the logic in the rule for the DatePicker (where I also had a formatting rule to disable the DTP when a checkbox was false)  - once I put the logic in rule for the checkbox, it worked fine...

    thanks.

    However, this is really going to get tedious!

     - - 13 table rows
    Each with a checkbox, 2 DTPs and 3 textboxes - - based on the checkbox's False selection, I need to make invisible or disabled and clear the text

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