Discussions
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Join us
HTML formatting for Item Quantity issue
Hi there,
I just the following code to format our {locationquantityavailable} to show colours.
CASE
WHEN {locationquantityavailable} > 10 THEN '<font color="#006400">'||{locationquantityavailable}||'</font>'
WHEN {locationquantityavailable} > 5 THEN '<font color="#EEB422"><b>'||{locationquantityavailable}||'</b></font>'
WHEN {locationquantityavailable} > 0 THEN '<font color="#BE2625"><b>'||{locationquantityavailable}||'</b></font>'
ELSE '<font color="#BE2625"><b>'||{locationquantityavailable}||'</b></font>'
END
It work like a charm, but I have to set the field type as "Formula (Text)" which make it align left instead of "Formula (Numeric)" align right. Result is like this screen: https://i.srsworks.com/i/92iP