Hello, I'm creating a grid that has a grid image in it.

Hello,

I'm creating a grid that has a grid image in it.

I want the grid image to display a document icon and represent a document, and when clicked the document will be downloaded.

Currently my form breaks because if the document ID in the database is blank it returns an error. For the time being I am passing in a 0, since there will never be a document with an ID of 0, but this will forward the user to a blank page.

Is there a way to make the icon not clickable if there is not document at certain points in the array? I will gladly accept other proposed solutions.

Thanks!

Below is my code:

a!gridImageColumn(
label: "View Application",
field: "FilingDocAppianDocID",
size: "ICON",
data: apply(
a!documentImage(
document: _,
altText: _,
caption:...

OriginalPostID-139005

OriginalPostID-139005

  Discussion posts and replies are publicly visible