Bug? setValue(false) only hides the field, but not the label when labelPosition = aside

Hi,

I want to set a textField to visible(false) in onBeforeShow,
but it only hides the field and not the label.
When I use the property visible=“false” in the Descriptor it works fine.

And when I set it to visible=“false” I cannot make it visible in the controller any more.
.setVisible(“true”) does not work.

Is there an issue or do I oversee something?

KR
Roland

and now I noticed, that also setLabel does not work…
cannot change the label in the Controller, tried multiple handlers, init… beforeshow… ready…

all that strange behaviour only happens,
when I set the labelPosition to ‘aside’
if it is ‘top’ it works like expected

Hi!

We were working on solving this problem.

In fact, when using labelPosition=ASIDE, it wraps the component in a formItem.
According to the vaadin documentation: Form Layout | Components | Vaadin Docs

Right now you can only take the parent [formItem] of the hidden component and hide it too.

You can take a lot more information from the issue: Redesign FormLayout component · Issue #2201 · jmix-framework/jmix · GitHub

Regards,
Dmitriy

thx for that… I will wait until the formItem can be used…