Programmable Way to add background images to Grid Fields

Hi All,

Were looking for a way to add a background image to a grid field under certain conditions (like a field ==).

During testing, adding this in onRecord event works:

echo “”;

But this not that efficient and although upon application start or a browser refresh the image appears, after the grid does an auto refresh using the time we specified in Settings → Refresh Interval that image disappears.

I’m hoping someone with better understanding of scriptcase cant point me in the right direction :grinning:

echo “document.getElementsByClassName(‘scGridFieldOddFont css_fieldname_line’)[0].style.backgroundImage=‘url(image.png)’”

1 Like

🚀 Scriptcase 9.12 is now available! Check out the new features here 👉🚀 Next Monday (02/24), Scriptcase 9.12 will be released! Check out the new features before anyone else 👉