Share via


Identity Element

The Identity element is used on a New or Edit form to render hidden fields that are used by the forms. It renders a set of hidden <INPUT> tags that allow the server to identify which item is being edited when a form is submitted, the version of the item, and the time that the item was last modified (in the case of a document library) for multi-user conflict detection.

Syntax

<Identity>
</Identity>
Parent Elements
ListFormOpening, XML

Example

This element renders the following <INPUT> tags for the Edit form of the first announcement in the built-in announcements list. These values are posted back to the server when a form is submitted so that the server knows which list as well as which row the POST refers to. The NAME attribute's owshiddenversion value is used for conflict detection.

<INPUT ID=onetidIOHidden TYPE=HIDDEN NAME="List" VALUE="Announcements">
<INPUT ID=onetidIOHidden TYPE=HIDDEN NAME="ID" VALUE="1">
<INPUT ID=onetidIOHidden TYPE=HIDDEN NAME="owshiddenversion" VALUE="0">