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 / November 2005

Tip: Looking for answers? Try searching our database.

drop down list box adds blank line

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chloraphil - 31 Oct 2005 20:57 GMT
My form populates a couple of drop-down list boxes from a SQL Server
connection.  The problem is that Infopath adds a blank entry.  Now this would
make sense if the default value is not specified.  But when specifying a
default value, the blank line is still there when clicking on the drop-down
box.  

Is it possible to prevent that blank line from appearing as a possible
selection?  I know I can use data validation, etc to annoy the user not to
select it, but it would be much smoother to nip it in the bud.  Thanks.
Greg Collins [InfoPath MVP] - 31 Oct 2005 22:55 GMT
You can remove the default blank line by manually modifying the view .xsl file and removing the <option/> tag.

Keep in mind that if you ever modify the drop-down list box control in the InfoPath designer, that blank line will be added back and you will have to remove it again.

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com

My form populates a couple of drop-down list boxes from a SQL Server
connection.  The problem is that Infopath adds a blank entry.  Now this would
make sense if the default value is not specified.  But when specifying a
default value, the blank line is still there when clicking on the drop-down
box.  

Is it possible to prevent that blank line from appearing as a possible
selection?  I know I can use data validation, etc to annoy the user not to
select it, but it would be much smoother to nip it in the bud.  Thanks.
chloraphil - 31 Oct 2005 23:07 GMT
Thanks Greg!

> You can remove the default blank line by manually modifying the view ..xsl file and removing the <option/> tag.
>
[quoted text clipped - 9 lines]
> selection?  I know I can use data validation, etc to annoy the user not to
> select it, but it would be much smoother to nip it in the bud.  Thanks.
Greg Collins [InfoPath MVP] - 01 Nov 2005 18:51 GMT
Glad to help out!

Signature

Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.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.