0

Script script doesn't change the color.

let alert := day('DUE DATE' - today());
let myANZ := (select INVOICE);
let myArrow := if Y1 = true then "▼" else "▶︎" end;
let alertColor := if alert < 3 then "red" else "green" end;
myArrow + " VIEW LINE ITEMS / " +
html("<span style='color:" + alertColor + "; font-weight:bold;'>" + alert + "</span>")

Script  script doesn't change the color. Need change the alert color

2 Antworten

null
    • mirko3
    • vor 23 Stunden
    • Gemeldet - anzeigen

    Hi Rafael. Look this. Mirko

    let alert := day('DUE DATE' - today());
    let myANZ := (select INVOICE);
    let myArrow := if Y1 = true then "▼" else "︎" end;
    let alertColor := if alert < 3 then "red" else "green" end;
    html("<span>" + myArrow + " VIEW LINE ITEMS / <span><span style='color:" + alertColor +
    "; font-weight:bold;'>" +
    alert +
    "</span>")
    
      • Rafael_Sanchis
      • vor 23 Stunden
      • Gemeldet - anzeigen

       

      Thanks Mirko, perfect👍