I have a form that has 2 buttons. One of them I want to restrict access to to certain individuals. In all other cases it needs to be grayed out (disabled).
What I have done is create a rule that compares the UserName of the current user to certain names that are of the people I want to grant access to. For some reason that I cannot figure out, the button is grayed out if I have that rule. Let me be more specific (I may give more info than needed, just trying to be throurough).
The button in question submits the form and I defined it as a Action Rules button. The rule I am running intends to change the formatting (i.e.disable the button) depending on whether the Current user is not John Smith or Jane.Doe. This is how I write the condition:
Current User does not contain "Smith" AND
Current User does not contain "Doe"
Current User is a textbox that has the UserName formula.
It is not working. I made the Current User texbox visible on the form and in fact it is showing the name of the current user, so the comparison should be straightforward.
I'm not sure it makes any difference, but this is a form connected to a list and John Smith and Jane Doe do not have full access to delete stuff. If I remove the rule they do have access to the button.
Any tip will be greatly appreciated.