Microsoft KB Archive/922133

= An incorrect item may appear as the selected item when you select an item in a combo box control, in a drop-down list box control, or in a list box on an InfoPath 2007 form =

Article ID: 922133

Article Last Modified on 11/3/2006

-

APPLIES TO


 * Microsoft Office InfoPath 2007

-





SYMPTOMS
Consider the following scenario. You add a combo box control, a drop-down list box control, or a list box control to a Microsoft Office InfoPath 2007 form. You select a particular item in the list. In this scenario, an incorrect item may appear as the selected item. Therefore, you cannot select certain items in the list.



CAUSE
This behavior occurs if the control uses duplicate values for the Value properties of list entries. For example, this behavior occurs if the control contains values for list entries that resemble those in the following table.

This is the expected behavior in InfoPath 2007. The control lets you type or select a value for the list entry that you want. When you type or select the value of the specific list entry, that value is replaced by the display name of the particular entry. The following table lists the behavior that occurs in this situation.



RESOLUTION
To resolve this behavior, specify unique values for each list entry.



STATUS
This behavior is by design.



Steps to reproduce the behavior
 Start InfoPath 2007, and then design a new blank form. In the Tasks pane, click Controls. Click Combo Box to insert a combo box control. Right-click the control that you inserted in step 3, and then click Combo Box Properties. In the Combo Box Properties dialog box, click the Data tab.</li> Click Enter list box entries manually, and then click Add.</li> Type a in the Value box, type Option A in the Display name box, and then click OK.</li> Click Add.</li> Type a in the Value box, type Option B in the Display name box, and then click OK.</li> Click Add.</li> Type c in the Value box, type Option C in the Display name box, and then click OK.</li> Click OK, and then click Yes when you receive the following message:

The default value in the choice list is not unique. Do you still want to accept the default value?

</li> On the Standard toolbar, click Preview.</li> In the Select or type list, click Option A. Notice that Option A appears as the selected option in the list.</li> Click Option B in this list. Notice that Option B does not appear as the selected option. Instead, Option A appears as the selected option.</li></ol>

Keywords: kbexpertisebeginner kbtshoot kbprb KB922133

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.