Hello,
In the code snippet below, why is only the textfield not visible and what would be the solution to hide the label as well?
FormLayout f = new FormLayout();
TextField t1 = new TextField();
TextField t2 = new TextField();
Checkbox c1 = new Checkbox();
f.addFormItem(c1, "Visible");
f.addFormItem(t1, "Text 1");
f.addFormItem(t2, "Text 2");
c1.setValue(true);
c1.addValueChangeListener(e -> {
t1.setVisible(c1.getValue());
});