Remove borders from a drop-down list box in InfoPath

Learn how you can remove borders from a drop-down list box when printing an InfoPath form.

Because the option to remove borders from around a drop-down list box is disabled in InfoPath, typically, if you want to remove borders from a drop-down list box, for example when printing a form, you will have to find a workaround to do so.

If you are printing a form, you can create a separate print view and link it to the view on which the drop-down list box is located. And then on the print view, you can place a calculated value control to display the selected item from the drop-down list box.

Note that if the drop-down list box is being populated with items from a secondary data source, you may have to perform a lookup for the actual display name of the selected item, especially if the value and the display name of items in the drop-down list box differ from each other.

And in the case of a drop-down list box being populated with static items, you must ensure that the value and display name of each item in the drop-down list box are the same, since you cannot perform a lookup for a display name that matches a selected value.

The following InfoPath 2013 video tutorial shows you how you can use a print view to print the contents of a drop-down list box that is bound to a secondary data source without getting any borders around the printed selected item from the drop-down list box.

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

  • How to add a Calculated Value control to an InfoPath form.
  • How to perform a lookup in a secondary data source by using the Filter Data option.
  • How to use the Print Preview functionality in InfoPath 2013.

See more InfoPath 2013 tutorial videos »

 


Related InfoPath Articles:

 

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. 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.

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