Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

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


View products that this article applies to.

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 "View1" to whatever value is in the field. The other button adds "View2" to the field when the button is pressed. When you open this form in a Web browser, the value "View1View2" 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.

↑ Back to the top


Workaround

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

↑ Back to the top


Keywords: KB931410, kbprb, kbtshoot, kbexpertiseinter

↑ Back to the top

Article Info
Article ID : 931410
Revision : 2
Created on : 2/1/2007
Published on : 2/1/2007
Exists online : False
Views : 297