Pixelsilk API function to verify that a field name does not conflict with another field or control--requires the advanced-admin-access permission
pageTypeId: the unique identifier of the page type
fieldName: the name of the field

The function checkValidNewPageTypeField returns a string containing a message about the name if not valid and an empty string if valid

C# Example:
Guid pageTypeId = <page type's id>;
string fieldName = "newField";
string validity = CheckValidNewPageTypeField(pageTypeId, fieldName);
Note the capital first letter of the C# method.

HTTP Example:
Request Headers:
POST /api2/checkValidNewPageTypeField HTTP/1.1
Content-Length: 167
Content-Type: application/x-www-form-urlencoded
Cookie: auth=D3C6BC1B5633...02DAE8FD4161

Request Data:
Unencoded Data:

Url-encoded Data:

Response Headers:
HTTP/1.1 200 OK
Set-Cookie: auth=242179E36876...ABB1CAAF45B; path=/
Content-Type: text/javascript; charset=UTF-8
Content-Length: 2

Response Data:

JavaScript Example:
Method Call:
pixelsilk2.checkValidNewPageTypeField(input, callback);

Input Object:

Returned Data:

Back to Page Types »