On forms you want to set controls ie enabled or visible
You can do this by specifying the control name or the id but the best way is to do it like this:
Another advantage of doing it this is, you don't have to set the AutoDeclaration on the form control.
You can do this by specifying the control name or the id but the best way is to do it like this:
element.design().control(control::Name).visible(false);
"control" is a system enum that maps the name to the id. Another advantage of doing it this is, you don't have to set the AutoDeclaration on the form control.