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:
- Display the first item in a drop-down list box in InfoPath 2010
- Populate a drop-down list box with dates excluding weekends
- Filtered cascading drop-downs in InfoPath browser forms using SharePoint lists and WSS owssvr.dll
- Auto-populate a drop-down list box with past and future dates
- Populate InfoPath drop-down programmatically from code
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.