Infopath edit for date format - InfoPath Dev
in

InfoPath Dev

Infopath edit for date format

Last post 01-25-2015 11:05 PM by donstephen. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-24-2015 10:59 AM

    • jassie
    • Not Ranked
    • Joined on 01-12-2015
    • Posts 6

    Infopath edit for date format

     In an InfoPath 2013 form that uses a custom list, I want to be able to create an edit for a date. This would occur when the user does not use the date picker but uses enters a value. If the user enters a value that is not a valid date, InfoPath will show there is a problem.

    However I need to generate a custom error message saying the date is an invalid date format. I know that I can use some kind of a regular expression, but I do not know what regular expression to use. I know the internal storage for the date is different than what is displayed by InfoPath.

    Thus can you show me what custom edit pattern I can use to edit a date field?

  • 01-25-2015 11:05 PM In reply to

    Re: Infopath edit for date format

    Hi Jassie,

    Are you looking for a custom date pattern? If so then I would recommend using a Validation Rule and use a condition "does not match pattern" to the custom pattern below:

    \d\d/\d\d/\d\d\d\d

    Please check Jimmy's post here for more information.

    Hope this helps.

     

    Don Stephen Lambatin / Support Engineer
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.