I want to make certain fields on my form only editable if the current user is the one named in another field, but none of the expressions i'm trying seem to work. I'm pretty sure it comes down to whatever is causing the following behaviour.
I built a form that has a calculated value to display the current user, as well as a people picker that populates based on the current user. When I preview, it looks like this (Username Redacted):
However when I publish the form and open an item, it looks like this:
Is there any reason why it would work in preview but not when published?