Hide formulae in web

Hi,

I want to hide a particular field named field2, if “X” is chosen as one of the values in a field named field1 (Type CheckBox). This is a web application and I don’t want to use hideWhen formula and check “Refresh fields on keyword change” from field prop as because it refreshes the document every time.

Can any one pls help?

Subject: HIDE FORMULAE IN WEB

In the designer, for field2 properties go to the Tab and give an id for example - fld2.

Then for the Check Box field onClick:javascript:

if (document.forms[0].field1[0].checked) { //assuming the first value in the checkbox is “X”

document.getElementById(“fld2”).style.display=“none”;

}

HTH

Sai