How to hide the checkbox caption when giving a visible = false in the checkbox?

The TWebDBCheckBox needs to place a label in the HTML, because without it the caption does not appear, but if you place a visible = false in the checkbox the label is not hidden, only the checkbox.

How to hide the checkbox and the title just by giving a checkbox.visible = false ?

Cannot be reproduced.
webcheckbox

Hello Bruno,

I'm using bootstrap, my html is like this:

<div class="col-auto">
     <div class="form-check form-switch" style="padding-top: 30px;">
         <input id="view.ckActive" class="form-check-input" type="checkbox">
         <label class="form-check-label fs-6" for="view.ckActive">Active</label>
     </div>
</div>

When I hide the checkbox the label declared in the html is not hidden.

For a linked checkbox, the HTML checkbox input element is linked. The control that links to this HTML checkbox input cannot guess what the possible additional HTML is associated with this checkbox. So, for a linked checkbox, it is restricted to the checkbox. You'll need to add additional code if you want to control the visibility of extra HTML elements