endsWith( )


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

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

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

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field whose value is compared with the string.


valuestringRequired

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

Returns
Return Type:WixDataFilter
Did this help?