jasonwood Posted March 15, 2012 Posted March 15, 2012 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?
Lee Smith Posted March 15, 2012 Posted March 15, 2012 Hi Jason, This sound like what was discussed in this recent thread http://fmforums.com/...-the-clipboard/
cruijff Posted June 6, 2012 Posted June 6, 2012 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
Aussie John Posted January 29, 2013 Posted January 29, 2013 You could change the field condition to not accept entry in Browse mode (use the Data Inspector>>Behaviour)
Wim Decorte Posted January 29, 2013 Posted January 29, 2013 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.
Recommended Posts
This topic is 4708 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