// for "male"
if (This.GetDataSetValue("OZFormParam.gender") == "M") {
This.SetChecked(true);
}
// for "female"
if (This.GetDataSetValue("OZFormParam.gender") == "F") {
This.SetChecked(true);
}
if (This.GetDataSetValue("OZFormParam.bandAgree") == "false") {
This.SetInvisible(true);
}
<script type="text/javascript" >
var serverUrl = "https://" + location.host;
function SetOZParamters_OZViewer(){
var oz = document.getElementById("OZViewer");
oz.sendToActionScript("information.debug", "true"); // viewer console
oz.sendToActionScript("connection.servlet",serverUrl + "/oz/server");
oz.sendToActionScript("connection.reportname","/eform/membership.ozr");
oz.sendToActionScript("connection.pcount", "4");
oz.sendToActionScript("connection.args1", "memberNo=" + "1001");
oz.sendToActionScript("connection.args2", "firstName=" + "John Michael");
oz.sendToActionScript("connection.args3", "gender=" + "M");
oz.sendToActionScript("connection.args4", "bandAgree=" + "false");
return true;
}
start_ozjs("OZViewer", serverUrl + "/oz/HTML5viewer/");
</script>