Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

script

$
0
0

Hi, i hope someone can help me.

 

I have this Custom Calculation field:
ColorField('AdjustedCO2Reading',ValidateWithSetPoint('CO2SetPoint','AdjustedCO2Reading',0. 2));

 

I would like it to have:

-1 > 0.2 = Do this (Coloring)

0.21 > 0.7 = Do this(Coloring)
0.71 > 100 = do this(Coloring)

 

 

ColorField Custom Script:

function ColorField(AFieldName,AOK)

{

   var f=this.getField(AFieldName);

 

 

   if (AOK || f.value == 'N/A')

      f.textColor=color.black;

   else

      f.textColor=color.red;

   return AOK;

}

 

I would like 3 different colors in the ColorField Script for the values abobe in the "Custom Calculation Field".

 

Hope someone can help


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>