That worked like a charm. I tweaked it a bit for the proper colors and to add a space between the numbers.
I also duped a section to add a extension to the Office number. I need the 'ext' to be black as well as the actual extension number, and a '.' after the ext instead of a ':' colon. Can that be done? (Code below)
function format_phone(prefix, phone_num)
{
if (phone_num)
return '<span color="PANTONE BLUE 072 U">' + prefix + ": " + '</span><span color="Black">' + phone_num + '</span>';
else
return false;
}
var numbers = [format_phone("<b> Office</b>", Field("Office")), format_phone("<b> ext</b>", Field("Ext")), format_phone("<b> Direct</b>", Field("Direct")), format_phone("<b> Cell</b>", Field("Cell"))];
return numbers.filter(Boolean).join(" ");