hi everyone

i want to hide a datefield with javascript. I have a function and works perfectly here is the code:




if(Checkbox2.checked){
  Datefield1.enable();
}
else{
  Datefield1.disable();
}
I did the javascript with hide() , show() , setVisible(boolean),setDisabled(boolean) and worked great but i cant hide the FieldLabel i made and example with hideLabels because my Datefield is into the formlayout it works great but i cant pass it a true value if anybody knows how i would appreciate it in fact i did it with C# and works great but i wanna do this in Client Side cause its possible but i dont know how.

Thanks