Microsoft KB Archive/931410

= When two controls have the same control ID in an Office InfoPath 2007 form template, the Design Checker does not generate an error message =

Article ID: 931410

Article Last Modified on 2/1/2007

-

APPLIES TO


 * Microsoft Office InfoPath 2007
 * Microsoft Office Forms Server 2007

-



SYMPTOMS
When two controls have the same control ID in a Microsoft Office InfoPath 2007 form template, the Design Checker does not generate an error message about the duplicate control ID values. When you open this form in a Web browser, you may experience problems.

For example, assume that you create an InfoPath form template that has two views. In each view, you add a text box and a button. Each button has the same control ID and executes a rule that concatenates a value to the text box. These rules set a value on the same field. One button adds &quot;View1&quot; to whatever value is in the field. The other button adds &quot;View2&quot; to the field when the button is pressed. When you open this form in a Web browser, the value &quot;View1View2&quot; is always added to the value in the text box, regardless of which button is pressed. This behavior occurs because the buttons have duplicate control IDs.



WORKAROUND
To work around this issue, make sure that the controls have unique control ID values.

Additional query words: IP2007 InfoPath2007 IFS2007

Keywords: kbexpertiseinter kbtshoot kbprb KB931410

-

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

© Microsoft Corporation. All rights reserved.