What is the easiest way to change the color of an element on a form based on a value?

I have a simple table in Base, and I have a form to enter/review data.
Is there an easy way to change the color of any element of the form based on the value of one of the fields in the actual record?
For example: I’m moving through the records one after another, and when the value in the field EXAMPLE is zero, draw a red frame around the text box with the zero, or change the background color of it, or even of the whole form.
Thank you.

You can use a form control of type “formatted field” which supports the same number formats as a spreadsheet cell, including coloured number formats.
https://help.libreoffice.org/7.5/en-US/text/shared/01/05020301.html?DbPAR=SHARED#bm_id3153514

I haven’t find any way to change the border or the background color of the whole field, but changing the text color did the job as well.
Thank you again.