Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Script to see if object border fill color is green

$
0
0

When a user selects an answer from a drop down object a text box turns green (if the correct answer).

 

I want to write a script to check to see if the object is green and loop thru all the table rows.

 

This is what I have but it will not detect the green color.

 

var nCount = 0;
var vRows = 47;
for(i=vRows;i>=0;i--){
if(Table1.resolveNode("Row[" + i + "]").Signal.border.fill.color.value == "204,255,204" ){  nCount = nCount +1;  this.rawValue = nCount;  }
}
if(nCount ==0){  this.rawValue = nCount;
}

Viewing all articles
Browse latest Browse all 5571

Trending Articles



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