Is there a way to add custom images for the images...
# general
k
Is there a way to add custom images for the images on a highlighting rule in a saved search?
j
You could achieve this by using a formula, and returning the HTML for an image in the file cabinet. For this to work, you will need make sure that
DISABLE HTML IN SEARCH FORMULA (TEXT)
is unticked in Setup -> General Preferences.
k
Can I use relative links to the file or does it have to be a full link?
j
I think relative should be fine? It’s just HTML of an image.
k
is the syntax on this correct? CASE WHEN ({custbody_delivery_date_schedule}) >= CURRENT_DATE THEN to_char({custbody_delivery_date_schedule},'DAY') WHEN {custbody_delivery_date_schedule} < (CURRENT_DATE - 1) THEN '<p style="font-stylebold;background color#ff8585;text-alight: center;"><img src="https://3653670.app.netsuite.com/core/media/media.nl?id=4730410&amp;c=3653670&amp;h=XTIr2DuHjTYC1ci3yb92DP7UDQK13gkC9oUOysmmLMpJd9a_">END
its saying invalid expression, but i cant seem to find a problem
ignore the lack of space at the end, it copied incorrectly
j
a) you didn’t close quote your HTML string
b) no ELSE
Copy code
CASE WHEN ({custbody_delivery_date_schedule}) >= CURRENT_DATE THEN to_char({custbody_delivery_date_schedule},'DAY') WHEN {custbody_delivery_date_schedule} < (CURRENT_DATE - 1) THEN '<p style="font-style:bold;background-color:#ff8585;text-alight: center;"><img src="<https://3653670.app.netsuite.com/core/media/media.nl?id=4730410&c=3653670&h=XTIr2DuHjTYC1ci3yb92DP7UDQK13gkC9oUOysmmLMpJd9a_>">' ELSE '' END
k
thanks 🙂 its been a long day