Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4316 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

  • 2 months later...
Posted

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

  • 7 months later...
Posted

You could change the field condition to not accept entry in Browse mode (use the Data Inspector>>Behaviour)

Posted

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.

This topic is 4316 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.