REORDERFIELDS Method
Changes the order in which fields in a SharePoint list are displayed in the data entry form for the list.
Syntax
<Method ID="Text">
<SetList Scope="Request">GUID</SetList>
<SetVar Name="Cmd">REORDERFIELDS</SetVar>
<SetVar Name="ReorderedFields"><Fields>
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
<Field Name="field_name" />
</Fields>
</SetVar>
<SetVar Name="owshiddenversion">Integer</SetVar>
</Method>
Parameters
ID = "Text"
Scope = "Request"
Name = "Cmd"
Name = "ReorderedFields"
Name = "owshiddenversion"
Decoded
<Method ID="0,REORDERFIELDS">
<SetList Scope="Request">GUID</SetList>
<SetVar Name="Cmd">REORDERFIELDS</SetVar>
<SetVar Name="ReorderedFields"><Fields>
<Field Name="owshiddenversion" />
<Field Name="ID" />
<Field Name="Title" />
<Field Name="Modified" />
<Field Name="Created" />
<Field Name="Author" />
<Field Name="Editor" />
<Field Name="Edit" />
<Field Name="LinkTitle" />
<Field Name="Name" />
<Field Name="Age" />
<Field Name="FieldXYZ" />
<Field Name="Address" />
<Field Name="FieldABC" />
</Fields>
</SetVar>
<SetVar Name="owshiddenversion">10</SetVar>
</Method>
Return Value
Success
Returns the code attribute, which is a signed-decimal representation of an HRESULT.
Error
Returns an XML-encoded Unicode (UTF-8) text string. See Error Message Format for Windows SharePoint Services for more information.