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?
the problem could that you have disabled the control hence its reference variable is not created. if you open developer console can you see any errors?
Very odd behaviour...
weird, it works for me this way.
I would check developer console, whether there are not reported any error, maybe from other formulas or rules.
can you sort them out?
I don't think they affect it,every other element on the form works fine, including lots of validation and formatting rules.
I'm going to try it again on a blank from for a different table on the same site and see what happens.