bcooney Posted October 2, 2010 Posted October 2, 2010 Field behavior is not scriptable. If you tell us what you're trying to achieve, there may be other techniques you can use.
GS Posted October 2, 2010 Author Posted October 2, 2010 I would like my fields to be locked when browsing records, then allow entry when a button 'edit' is clicked. What I have in mind is to switch to identical layout with allow-entry permission upon clicking 'edit' button then use 'OnObjectSave' trigger script to switch back to original layout. Do you have a better solution?
bcooney Posted October 2, 2010 Posted October 2, 2010 That sounds good, and is what I often do. However, I'd use Record Commit, or a Done button that switches back to locked layout. Also, check out Security and Privilege Sets with Record Level Access rules to "really" lock out editing of fields. You could also simply have a button set a flag = 1, and define the RLA rule to allow edit if that flag=1.
Recommended Posts
This topic is 5235 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