InfoPath 2010 present vs. not blank in rules

Learn what the difference is between present and not blank when used in conditions on rules in InfoPath 2010.

You typically set one or more conditions on a rule to make that rule run under certain circumstances. There are four conditions, which may cause confusion as to when they should or should not be used in InfoPath. Those four conditions are:

  1. is present
  2. is not blank
  3. is blank
  4. is not present

The easiest way to think about the usage of the aforementioned conditions is to remember that present indicates the presence of a node in a data source (Main or secondary) of an InfoPath form, while blank refers to the actual value of a node.

The following InfoPath 2010 video explains what the difference is between is present and is not blank or between is not present and is blank when used in a condition on a formatting rule in InfoPath 2010.

In this InfoPath 2010 tutorial video, you learned...

  • How to set conditional formatting on a control that depends on another control that is located in an optional section control.
  • How to add a formatting rule with an is not present condition on it.
  • How to add a formatting rule with an is present condition on it.
  • How to add a formatting rule with an is not blank condition on it.
  • How to add a formatting rule with an is blank condition on it.

See more InfoPath 2010 tutorial videos »

 
 Subscribe for updates via RSS or Email

Copyright: This article may not be used on web sites (whether personal or otherwise), copied, disseminated, altered, printed, published, broadcasted, or reproduced in any way without an expressed written consent of S.Y.M. Wong-A-Ton. The techniques demonstrated in this article may be used within any Microsoft InfoPath project. This article is provided without any warranties. Copyright for this article is non-transferrable and remains with the author, S.Y.M. Wong-A-Ton.

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners
InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013
InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners
InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010
InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers
InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services


Related InfoPath Articles:

InfoPath 2013 Cookbook: 121 Codeless Recipes for Beginners

InfoPath 2013 Cookbook 2: 121 Codeless Recipes for SharePoint 2013

InfoPath 2010 Cookbook: 101 Codeless Recipes for Beginners

InfoPath 2010 Cookbook 2: 101 Codeless Recipes for SharePoint 2010

InfoPath 2010 Cookbook 3: 101 Code Recipes for C# Developers

InfoPath 2010 Cookbook 4: 101 Code Recipes for VB Developers

InfoPath 2010 Cookbook 5: Integrating InfoPath with Excel and Excel Services