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 starts with a specified value.
The startsWith()
method refines this query to only match items where the value of the specified field starts with the specified value. Matching with startsWith()
is not case sensitive, so "TEXT"
is considered to start with "tex"
.
You can only use startsWith()
with a field of type string or reference. When specifying a field of type reference, startsWith()
matches by the ID of the referenced item as a string.
Field whose value is compared with the specified value.
String to look for at the beginning of the specified property value.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.