Friday, May 7, 2010

Eliminate the empty item in InfoPath Listbox and Dropdownbox

When you design a InfoPath form, trying to use external data  as the data source for Listbox or Dropdown list, like a SharePoint list,  you will find that the first item is a empty item. I think it's ugly and uncomfortable to someone, but you can't remove it from the InfoPath 2007, you need modify the XSN file manually. About modifying the XSN file manually, you can refer to my previous post.

After extracting the CAB file, the only thing you need  do is to find the corresponding view*.xsl file, removing <options /> tag (there would be one line only contains <options /> ).


No comments:

Post a Comment