panchristo Posted September 15, 2010 Posted September 15, 2010 What is considered the best practice for locking a specific field on every record after being edited once? (But also have a NotEmpty AND Unique validation option) In other words, I have a field which needs to be filled in every record, be unique and once validated not being accessible. I suspect that setting another field to 1/0 by a script is a potential vulnerability if someone can access it, isn't it? I was thinking of employing a OnRecordCommit script trigger to prevent commiting before editing once, and then comparing creation and modification timestamps. What do you think? I still think however, that if one gets access to the fields from another layout he could bypass it. Any ideas?
bcooney Posted September 15, 2010 Posted September 15, 2010 You'll need a record access rule that allows editing if the field is empty. I'd also provide a dialog before the commit, just in case the user wants to edit before being locked out. Often I give an admin priv set access to "unlock" the field/record.
panchristo Posted September 15, 2010 Author Posted September 15, 2010 The solution is always simpler than I am thinking of. Great idea, thanks a lot bcooney, I'll put it in rightaway. :thanks:
Squeaky Data Posted September 30, 2010 Posted September 30, 2010 Would the record access if not empty lock out the ability to edit the entire record rather than just the single field?
panchristo Posted October 1, 2010 Author Posted October 1, 2010 :thumbup: I think you're right. Any ideas?
Recommended Posts
This topic is 5225 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now