POST api/CustomForms/SetCustomFormFieldItemsPosition
Sets the positions of custom form field items based on the provided item IDs. This method updates the order of items within a custom form field of type DropDown or Checkboxlist.
Request Information
URI Parameters
None.
Body Parameters
SetCustomFormFieldItemsPositionName | Description | Type | Additional information |
---|---|---|---|
CustomFormFieldId |
Custom form field id |
integer |
None. |
ItemIds |
The sorted list of item IDs for custom form fields. The order of this list determines the indexes assigned to the items. |
Collection of integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "CustomFormFieldId": 1, "ItemIds": [ 1, 2, 3 ] }
application/xml, text/xml
Sample:
<SetCustomFormFieldItemsPosition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Posts"> <CustomFormFieldId>1</CustomFormFieldId> <ItemIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:int>1</d2p1:int> <d2p1:int>2</d2p1:int> <d2p1:int>3</d2p1:int> </ItemIds> </SetCustomFormFieldItemsPosition>
Response Information
Resource Description
IHttpActionResultNone.