- Wed Sep 08, 2021 3:49 am
#829493
Hi guys. i want to hide and show part of my form. so i tried this code, but it did not work. how can i solve it?
-------------------
this code for show and hide part of form by a checkBox:
function HideFields() {
if (getField("checkboxVar001").checked)
contractSubtitle("subtitle0000000001");
else //if not checked
expandSubtitle("subtitle0000000001");
}
getField("checkboxVar001").onchange = HideFields; //execute when checkbox changes
HideFields(); //execute when DynaForm loads
-------------------
this code for show and hide part of form by a checkBox:
function HideFields() {
if (getField("checkboxVar001").checked)
contractSubtitle("subtitle0000000001");
else //if not checked
expandSubtitle("subtitle0000000001");
}
getField("checkboxVar001").onchange = HideFields; //execute when checkbox changes
HideFields(); //execute when DynaForm loads