Infopath: Limit the number of words in single line text and/or multiple line of text fields

  1. Add a Validation rule.
  2. Under Condition choose The expression from the drop down.
  3. Paste in the following expression (replace 60 with the number of words you want to limit it to):

    string-length(.) – string-length(translate(., ” “,””)) > 60

 

This entry was posted in InfoPath, SharePoint and tagged , , . Bookmark the permalink. Follow any comments here with the RSS feed for this post. Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Your email address will not be published. Required fields are marked *