Listbox line item color - InfoPath Dev
in

InfoPath Dev

Listbox line item color

Last post 02-25-2008 09:46 AM by Clay Fox. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 02-25-2008 08:26 AM

    Listbox line item color

    Is it possible (easily) to color certain line items in a list box?

    I have seen a few posts/blog items on dynamically adding items to a list box using the preserve code block, one of the examples does coloring as well but I was hoping there was an easier way. The list box is bound to a secondary data source (database) displaying a title column and "saving" an ID column. However a new requirement is to highlight certain items in red.

    Plan B is going to be to use conditional formatting to show/hide an indicator icon/text that shows up outside the listbox but the preferable way would be to change the color (or background) of the list items themselves. I don't think we want to go down the road of writing code to query the datasource and manually adding each item just to highlight certain ones (not enough bang for the buck).

    Anyone have ideas or have come across this before?

    scott

  • 02-25-2008 09:46 AM In reply to

    Re: Listbox line item color

    If you want to display secondary data and allow selection then you may want to consider using a repeating table, which can be formatted easily and then a method for capturing the selection such as a button that then moves the selected current() row values to be used elsewhere in your form.

Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.