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 query to match items whose specified property value contains a specified string.

The contains() method refines this query to only match items where the value of the specified property contains the specified string. Matching with contains() is not case sensitive, so "text" does contain "Tex".

You can use contains() with a property whose value is a String or a Reference. For properties of type reference it is recommended that you use the eq() method instead of contains(). With properties that are References, contains() matches by the ID of the referenced item as a String.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with the string.


valuestringRequired

The string to look for inside the specified property value.

Returns
Return Type:WixDataQuery
Did this help?