Only Show Panel if Current User = Name Entered in Field


Badge +5

I have a form that a user would come fill out to nominate a fellow employee. On the form, the user will enter the name of the employee's manager. The manager then needs to edit the form to approve the request.

So i have a panel on the form that contains the approval radio buttons. I would only like to show this panel to the name that was entered as the manager.

I tried to set an expression on the panel to only show if "Current User == NomineeManager" but that didn't work.

What am I missing?


4 replies

Badge +16

working exactly this myself right now!

I have a rule called "Hide if not S&I Manager" which resides on the control (or panel) I want to hide.

Rule Type = Formatting

Condition = HideIfNotManager.PNG

then tick Hide

Badge +5

In your example, what is "PreferredName". Is that a Named Control? Cassy Freeman​

Badge +16

it's an attribute in the user profile service (that should be the same for you)

Badge +5

Right on! That did the trick!!

Reply