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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Why this simple 'IF' syntax is not working?


Level 8


Pls. help me that,

var myObject = /TextField11/

var greyFieldsList = "TextFieldAA TextFieldBB TextFieldCC "

var ReqFieldsList = "TextField11 TextField22 TextField33 "

var returnValue =;

var returnValueReq =;

if (returnValue != -1) {
this.fillColor = "192,192,192"; //GREY
this.access    = "readOnly";
else if (returnValueReq != -1)
this.fillColor = "255,255,191";  //YELLOW
// do nothing

Yellow is not working at all!!

Grey is working some times, some times not!

Pls. correct my IF condition in such a way it shoud work.

At given point of time, any field possess only one color

Thank you

0 Replies