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.
Field whose value is compared with the string.
The string to look for inside the specified property value.
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.