contains( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Refines a filter to match items whose specified field value contains the specified value.

The contains() method refines the filter to only match items for which the value of the specified field contains the specified value. contains() is not case-sensitive, so the value sunday is considered to contain the value Sun.

You can use contains() with a field whose type is a string or a reference. However, for fields whose type is reference, contains() matches by the ID of the referenced item as a string. Instead, use the eq() method.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with the provided value.


valuestringRequired

Value to locate in the specified field value.

Returns
Return Type:WixDataFilter
Did this help?