Expand my Community achievements bar.

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

2 Replies

Avatar

Level 10

Hi,

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

Avatar

Level 2

Thank you – I will try that. Christina