Is it possible to dynamically change fields visible property in Business Central

Hi Experts,

Is it possible to dynamically change the fields visible property based on some boolean selection?

I have a scenario that in user setup I have a boolean field lets say "Hide Field"

If "Hide Field" is true then I have a (for eg) In Customer Card Name field will be hidden for some specific user? and this should be configurable for some other table and for any field?

I was trying to achieve this using fieldref but fieldref does not have visible property,any%20table%20in%20the%20database.

Table Name Field Name Hide Values
Customer  Name TRUE
Vendor Name TRUE
Item Unit Cost TRUE

Any suggestion?

Thank you