I have a button that I want to hide or show depending on the users role. I have tried two different ways of doing this.

One I have created a role field in the user thing of the database, I have then put admin in that field and used a condition that says, when current users role is “admin” then the button shows up. This didn’t work. If I change the condition to when current users role is empty, then it works.

The second option I tried is to setup a field called is_admin, which required yes or no / true or false to be selected. If I manual enter yes into that field and then use a condition that says, when is_admin is yes then the button visible. The button doesn’t show up, but if I change the condition to when is_admin is no, even though it says yes in the field, the button will show.

So your issue was with your data privacy that you set up. It looks like you started to create a data privacy role for a user, but never got to finishing it. No user had access to view the admin field, meaning that that condition would never work.