startsWith( )


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 starts with a specified string.

The startsWith() method refines this query to only match items where the value of the specified property starts with the defined string. Matching with startsWith() is not case sensitive, so "TEXT" starts with "tex".

You can only use startsWith() with a property whose value is a String or Reference. When using a Reference, startsWith() matches by the ID of the referenced item as Strings.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with the value parameter.


valuestringRequired

String to look for at the beginning of the specified property value.

Returns
Return Type:WixDataQuery
Did this help?