isEmpty( )


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 search to match items whose specified field does not exist or does not have any value (is null or undefined).

The isEmpty() method refines the search to only match items where the specified field does not exist or where its value is null or undefined.

If the field contains any value at all for a given item, including an empty string or an invalid value, that item does not match the search filter.

Method Declaration
Copy
Method Parameters
fieldstringRequired

Field in which to check for an empty or non-existent value.

Returns
Return Type:WixDataSearch
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?