BuildPro
3 years agoQrew Captain
Help with formula (colors)
Getting this message:
[BOARD RATE]
var text ButtonColor = Case([CP - DW.2 BOARD RATE LABOR ONLY $]>0,
"#e600e6");
var text WordsColor = Case([CP - DW.2 BOARD RATE LABOR ONLY $]>0,"BLACK");
// Begin button style
var text bgcolor = $ButtonColor;
var text txtcolor = $WordsColor;
var text style = "style=\"text-decoration: none; text-align: center; background:" & $bgcolor & "; \nwidth: 20px; \nheight: 14px\nborder-radius: 5px; padding: 5px 5px; color: " & $txtcolor & "; display: inline-block; font: normal 700 24px/1 \"Calibri\", sans-serif; text-shadow: none;";
// End button style
"<div "& $style &">" & [CP - DW.2 BOARD RATE LABOR ONLY $] & "</div>"
//"<div " & $style & " " & [CP - DW.2 BOARD RATE LABOR ONLY $] & "</div>"
------------------------------
BuildPro
------------------------------
[BOARD RATE]
var text ButtonColor = Case([CP - DW.2 BOARD RATE LABOR ONLY $]>0,
"#e600e6");
var text WordsColor = Case([CP - DW.2 BOARD RATE LABOR ONLY $]>0,"BLACK");
// Begin button style
var text bgcolor = $ButtonColor;
var text txtcolor = $WordsColor;
var text style = "style=\"text-decoration: none; text-align: center; background:" & $bgcolor & "; \nwidth: 20px; \nheight: 14px\nborder-radius: 5px; padding: 5px 5px; color: " & $txtcolor & "; display: inline-block; font: normal 700 24px/1 \"Calibri\", sans-serif; text-shadow: none;";
// End button style
"<div "& $style &">" & [CP - DW.2 BOARD RATE LABOR ONLY $] & "</div>"
//"<div " & $style & " " & [CP - DW.2 BOARD RATE LABOR ONLY $] & "</div>"
------------------------------
BuildPro
------------------------------