Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2007

Tip: Looking for answers? Try searching our database.

Dropdown list fill from secondary source adds blank value at top

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
emailmygroup@gmail.com - 05 Sep 2007 21:12 GMT
Hi there,

 I have InfoPath 2003 SP 2. I want to have a dropdown list value
filled from outer xml file. I created secondary data source for the
xml file. In dropdown list property, I put list box entries as
secondary data source. Now when I run it, the drop down list is filled
with data from xml file but it adds a blank option at the top of the
list. Is there any way I can remove it? or can I change it to
"Select..."

Thanks
David Dean - 06 Sep 2007 02:24 GMT
The blank option appears because the default value for the field is an empty
string. If you set the default value for the field to one of the values
listed in the dropdown, the blank option will no longer appear.

If you want "Select..." or some other string to appear when the field is
empty, your XML file will need to provide both a value and a description for
each repeating element. You can then add an element to the top of the XML
file that has a blank value and a description of "Select...".

Signature

David Dean
Sr. Member Technical Staff
Insource Technology Corp.

> Hi there,
>
[quoted text clipped - 7 lines]
>
> Thanks
Virtualspy - 06 Sep 2007 19:47 GMT
You set the default value on the data connection field on the right where the XML schema resides, NOT the drop-down control on the form.  I had that problem also...  cheers.

EggHeadCafe - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.