March 15, 201213 yr Can script triggers be used to prevent fields from being modified? I tried returning false (based on certain conditions) on keystroke, but it doesn't work with checkboxes and menus, and it doesn't prevent pasting. If not, and I have to use the security settings, is there a way to customize the error message?
March 15, 201213 yr Hi Jason, This sound like what was discussed in this recent thread http://fmforums.com/...-the-clipboard/
June 6, 201213 yr I use this script to protect fields which cannot be set to "prohibit data entry modification" due to various reasons: Beep Show custom dialog ["Error!"; "This field is not modifiable!"] Commit Records/Requests[skip data entry validation; No dialog] Script triggers OnObjectEnter
January 29, 201312 yr You could change the field condition to not accept entry in Browse mode (use the Data Inspector>>Behaviour)
January 29, 201312 yr You would need the OnEntry event for this, and revert for the special field formats like check boxes and pop-up menus. Keep in mind that events and the "browse mode" feature of the inspector is layout dependent. If you forget them on a layout the users will still be able to change the field contents. Record-level Access as set in the privilege set prevents it on deeper level.
Create an account or sign in to comment