May 9, 20169 yr Newbies I'm a novice & I'm trying to lock /disable a field based on the current user. I don't want the field to disappear if the user is not authorized to modify it. I want it to be visible to unauthorized users, but modifiable to authorized users. Here's the script I'm trying to use: If [Get(AccountName)] If [Get(AccountName) = "boss1" or [Get(AccountName)] = "boss2" Else Set Field [Table::Next Tab] End If End If
May 9, 20169 yr 6 minutes ago, Rainydayfun said: I want it to be visible to unauthorized users, but modifiable to authorized users. You set this up in the users privilege set. Choose [Custom privileges …] for Records, then [Limited…] for Field Access, and make the field «view only». Not sure what role the script is playing here.
May 9, 20169 yr Author Newbies Thank you for the quick reply. The boss helped me. He ended up using the inspector to create an edit box & a popup menu. We set the popup menu to hide if the account name isn't one of the two authorized bosses. If it IS them, they can modify the popup. The edit box is unmodifiable, placed on top the popup, & shows the value that one of the bosses chooses in the popup.
Create an account or sign in to comment