SP.ListDataValidationFailure object

Describes a specific validation failure when a list item is inserted or updated.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.ListDataValidationFailure()

Members

The ListDataValidationFailure object has the following members.

Constructor

The ListDataValidationFailure object has the following constructor.

Constructor

Description

ListDataValidationFailure

Initializes a new instance of the SP.ListDataValidationFailure object.

Methods

The ListDataValidationFailure object has the following methods.

Method

Description

initPropertiesFromJson

writeToXml

Properties

The ListDataValidationFailure object has the following properties.

Property

Description

displayName

Gets the title of the list or the display name of the field where validation failed.

message

Gets a message with information about the failure.

name

Gets the field name or list ID where validation failed.

reason

Gets the reason for the failure.

typeId

This member is reserved for internal use and is not intended to be used directly from your code.

validationType

Describes the type of validation that caused the failure.

Remarks

This is equivalent the SPListDataValidationException.SPFailure server-side class.