Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new

Learn more

View all

Sign in to view all badges

Script to see if object border fill color is green

Level 9
Level 9

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;


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;


1 Reply
Level 9
Level 9

The script above will work if in the layout ready event but not the calculate event.

Why does it not work in the calculate event?

If my if statement involves a rawValue - it works in the calculate event - why doesn't this work when the if statement is checking the color of the object?