startsWith( )

Refines a query or filter to match items whose specified property value starts with a specified string.

The startsWith() function refines a WixDataQuery or WixDataFilter 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
propertyNamestringRequired

The property whose value will be compared with the string.


stringstringRequired

The string to look for at the beginning of the specified property value.

Returns
Return Type:WixDataQuery
Was this helpful?
Yes
No