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

have presence object hidden at beginning

Avatar

Level 2

Cannot get object to be hidden when document opens.  Object become present or hidden once calculation starts.  Have tried all

form1.Page1_InOut.colorOn_Offlbs[1]::calculate - (JavaScript, client)

this.rawValue = "";

ImageField1.presence = "hidden";

if (poundsOn_Off.rawValue > 1)

{

this.fontColor = "255,0,0";

ImageField1.presence = "hidden";

this.rawValue = poundsOn_Off.rawValue;

}

else

{

this.fontColor = "0,255,0";

ImageField1.presence = "visible";

this.rawValue = poundsOn_Off.rawValue;

}

Thanks for your help!

Christina

0 Replies

Avatar

Level 10

Hi,

you should not be using calculate for this, you should use the docReady event instead.