This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
I have some fileds that I need to be hidden on the web and show when a field is set to something. I have some code bellow, the validat function is working it is the hideviewsection that is not working for me.
JSHeader
function validatYesNo( YN ) {
if (YN != "" && YN != "O" && YN != "N") {
alert("Enter only Y or N.");
return "";
Continu = false;
}
return YN;
}
function hideviewsection(divname, YN){
var s1 = document.getElementById(divname);
if (ON == "O") {
alert(YN) // here I can see the anser being Y so this and above is working, I am not sure if I can pass 2 parameters in javascript functions... also I am not sure if the document should be // declared somewhere. That is all of the code I have.
s1.style.display = "inline";
}else{
s1.style.display = "none";
}
}
any help would be appraciated.. thanks
Paul.
Feedback response number WEBB8EZH5Q created by ~Olga Bubkrovitch on 03/16/2011