Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: The combo boxes white space, can it be removed?

20 views
Skip to first unread message

Greg Collins [MVP]

unread,
Sep 15, 2004, 12:47:08 PM9/15/04
to
The blank line in a list is there on purpose. Normally an item is not selected by default in a list -- because of that there needs to be an empty-string selection in the list. Otherwise the user will feel like a selection has already been made when in reality one has not. The form view will not accurately match the saved .xml file.

**IF** you really feel a need to get rid of that blank option, there are a couple of options.
1. Go into the view .xsl file and delete it.
a. You may find that it gets reinserted by the designer. If you want it permanently gone you will need to put your list box inside of a preserve code block.
b. If you remove it, make SURE that you set a default value for the field to which the list box is bound. Not doing so could result in data loss as described above.

2. Change the blank option to something like "Select...".
a. See 1a above.

3. Populate the list box via script.
a. See 1b above.

My recommendation is to leave it alone if at all possible.

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

"G. Tarazi" <Tarazi (at) LiveTechnologies.ca> wrote in message news:OckuCspm...@tk2msftngp13.phx.gbl...
Hi


Here is an issue


When you place a combo box in the InfoPath form, you can either add the combo box list manually, or retrieve it from a schema, or from a web service.


My problem is with the second scenario, I am connecting a combo box to a schema, and filling the schema, and then the first node of that combo box is always empty.


I am unable to remove it.


I don't have this problem when I fill the data manually.


Attached screenshot

0 new messages