Macro to hide textbox in Base form

I want to be able to Hide / Unhide textboxes on a form in Base by a macro. I have searched for hours but cannot find an answer. Any help would be very much appreciated.


Most of the controls have a property on the General Tab of Visible which can be set to Yes or No. This same property is available in a macro by getting the relative object and setting the enableVisible property to true or false.

This link has some sample code → How do I make a button visible from a macro?.

This link has a sample Base file with code using various objects → Libreoffice Base - Display Form based on Group Box Option selected

Here is a link to other links regarding LO documents. Macro information is there also. OOME by Pitonyak is regarded as the best single document. See → To learn LibreOffice Base are there introductions or tutorials?

Thank you so much. I will work through these ASAP.

As with all questions, if this answers your question please tick the :heavy_check_mark: (upper left area of answer). It helps others to know there was an accepted answer.