Slobey Posted January 14, 2009 Posted January 14, 2009 Hi everyone, I am loving the script triggers but am having trouble with one thing. I have a solution where we enter unit codes and quantities. some unit codes like conduit, require a distance (point a to point : and the quantity is calculated. so I have a "from" field and a "To" field. Some units like a manhole only needs one field (I use the "from" field). I wrote a script that says if the unit code is "manhole" and the user tries to enter a value in the "to" field, it shows a custom dialog box telling the user he can't do that and clears the field. I triggered the script by keystroke. The problem is that it appears that the keystroke is merely postponed until the script runs then the keystroke is entered. So if someone enters a 1 in the from field, the dialog box comes up and admonishes the user the field is cleared and the script ends, then the one is inserted. Is there a way to actually prevent the keystroke from entering? Thanks in advance
Slobey Posted January 14, 2009 Author Posted January 14, 2009 my bad everyone, I changed it to object modify and it is working fine. Thanks
Lee Smith Posted January 14, 2009 Posted January 14, 2009 Have you watch the videos Here that [color:blue]Old Advance Man pointed to. I found the ones on Script Triggers very helpful. Lee
Recommended Posts
This topic is 6066 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