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 filter to match items whose specified field value starts with a specified string.

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

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 Strings.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with the value parameter.


valuestringRequired

Value to look for at the beginning of the specified field value.

Returns
Return Type:WixDataFilter
Did this help?