Adam123 Posted February 11, 2005 Posted February 11, 2005 Is it possible to do this? I have a field that I put the search data in, then a search button next to it, I keep geting complaints from people that they should be able to put the data in the search field and press enter. can I make it do a scrpt off of the enter key inside a field?
-Queue- Posted February 11, 2005 Posted February 11, 2005 If you're paused while in Find Mode, Enter or Return will continue the script. If you're paused while in Browse Mode, only Enter (Ctrl-Return) will continue it.
Adam123 Posted February 11, 2005 Author Posted February 11, 2005 dont think I explained it right, I have a car dealership. and we look the cars up by stock number to load the record. so one of the employees would punch in 2423 in the field and click the search button, but they want to enter the 2423 in the field and hit enter instead of clicking the search button
-Queue- Posted February 11, 2005 Posted February 11, 2005 Then you either have to put them in a script before they enter the search, by clicking, say, a Find button, or use the EventScript plugin to trigger a script. Or you could format the field as a pop-up menu and as a button. This probably isn't feasible in your situation though.
Adam123 Posted February 11, 2005 Author Posted February 11, 2005 Well the whole point was not to have them click anything. is there a way to run a script once someone starts entering something into a field? or focuses on a field?
Reed Posted February 12, 2005 Posted February 12, 2005 If you don't want to have a plugin, you could just set up a looping script that pauses in find mode for users to enter the criteria, when they hit enter or return, it performs the find and shows the results in preview mode and pauses again. When the user hits return again, the loop starts over the user is returned to find mode. Just add a button to cancel the loop when you want it to stop. (If you want to view the result in browse mode instead of preview, users will have to use the enter key on the numeric pad, as Queue mentioned above)
Recommended Posts
This topic is 7487 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