This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Refines a search to match items whose specified field value starts with a specified string.
The startsWith()
method refines the search to only match items where the value of the specified field starts with the specified string
. Matching with startsWith()
is case-sensitive, so searching for "Sun"
does not match an item that contains the text "sunshine"
.
You can only use startsWith()
with a field whose value is a String or Reference. When using a Reference, startsWith()
matches by the ID of the referenced item as a String.
Field whose value is compared with the value
parameter.
String to look for at the beginning of the specified field value.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.