technologirl
Tue, 28 May 2019 14:28:03 GMT
if (value !== null && typeof value === "object" && value.fileName) { // looks like an attachment }
I'm not sure in what context you are writing your code, but you may also be able to use the getType() function: if (item.getType() ==="attachment") { // this item is an attachment } Reference: http://leap.hcldoc.com/help/topic/LEAPv9/LEAP/ref_jsapi_user_interface_objects.html