Jump to content

Colour Rule


Recommended Posts

Hi Again,


I have to assign colour to 3 more variables in a column, the current script works fine for 2 variables in the column, however we need to add 3 more variables for Kitten, Puppy and Ferret.



Please see the script below that works for the 2 variables in a column.

I need help


var fieldval = NormalizeEntities(Field("Sample 1 For Export"));

var parts = fieldval.split(":");

if (parts.length < 2)

return fieldval;


var format = "";

if (ToLower(parts[0]) == "cat")

format = "<color name=Red>"+"Cat:";


format = "<color name=Black>"+"Dog:";


return format + parts[1];



Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...