MariaAux Posted October 26, 2012 Posted October 26, 2012 I have got a global field for the user to select from a drop down menu. I can't deny access to them because the field needs to be accessed in order to use the drop down menu. If the user clicks twice within the field, they can actually enter a value that is not on the value list. I have validation setup so that if this occurs, the user receives a message. I don't like the message. Isn't there a calculation that I can run as part of a script trigger that basically says; If field is modified to a a value that is not part of the value list, revert field? Thanks so much for your help in advance and have a fab day.
doughemi Posted October 26, 2012 Posted October 26, 2012 In the Fields tab of Manage Database, press the Options button, then click the Validation tab. You will see a Member of Value List checkbox. 1
MariaAux Posted October 26, 2012 Author Posted October 26, 2012 Yes, I have already set the field to be validated. However, I dont want the user having to be prompted with the default or custom validation popup and being asked to press 'Revert field. Isn't there a script I can use that will suppress the validation failed popup and revert the field to what it was without user interaction? Thanks again.
LaRetta Posted October 26, 2012 Posted October 26, 2012 Hi Maria, Field-level validation is important for ultimate protection but you can add script trigger using OnObjectValidate to act on the failure first. Read up on it in Help. :-)
MariaAux Posted October 26, 2012 Author Posted October 26, 2012 Yeh that was what I was looking for. A quick script trigger to simply 'Undo0 upon validation fail. thanks so much
Recommended Posts
This topic is 4468 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