If you have ever needed to add a conditional image on a grid, you can use the following options:
Create a new text field and use an existing text field.
onRecord event:
if ({field_name} == 1) {
{field_name} = “<img src=’…/lock.png’ />”;
} else {
{field_name} = ‘’;
}
or a bit cleaner …
{field_name} = {field_name} == 1 ? “<img src=’…/lock.png’ />” : “”
This will display the image only when needed.
It is also possible to include the field text with the image by using {field_name} .= {field_name} . “<img src=’…/lock.png’ />”;
Regards,
Scott.