How to Validate the number of Characters entered? - InfoPath Dev
in

InfoPath Dev

How to Validate the number of Characters entered?

Last post 03-24-2009 08:28 PM by Jimmy. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-24-2009 04:28 PM

    How to Validate the number of Characters entered?

    I have a field that needs to have 1 to 15 characters entered. is there a way to validate that the field has between 1 and 15 characters entered into it. It is not important what the characters are.

     

    Thank You,

  • 03-24-2009 08:28 PM In reply to

    Re: How to Validate the number of Characters entered?

    To validate that a field has more than 1 character, just use the built-in validation options to mark it invalid if it is blank.

    Then click the And button and change the dropdown to or to add an expression to mark it invalid if it is greater than 15 characters.  That expression would be something like:

    string-length(XPath to field) > 15

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.