Validation for a text field - InfoPath Dev
in

InfoPath Dev

Validation for a text field

Last post 04-01-2013 06:28 PM by Mel Clemente. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-29-2013 05:53 AM

    Validation for a text field

    Hi

     this may be a simple one I am missing

     Having a text field for customer name, requirement for rule to have only letters present in that field, no numbers.

     Ways to achieve that, I could do a custom pattern on letter but each customer name is a different length

    Pointers appreciated

     Regards

    Steven

  • 04-01-2013 06:28 PM In reply to

    Re: Validation for a text field

    In your data validation rule, add this condition as an expression:

    contains(., "0") or contains(., "1")  or contains(., "2")  or contains(., "3") or contains(., "4") or contains(., "5") or contains(., "6") or contains(., "7") or contains(., "8") or contains(., "9")

    It might not be the smartest solution but that should work.

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

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