Follow Us:

Call us:  (306) 986-8888

Make Your Form Run A Button When You Press Enter!

Make Your Form Run A Button When You Press Enter!

A common request I get when building search forms or other simple task forms, is to make it so if the user presses Enter, it will make the form run a common task (usually available by clicking a button, like Search, or Print Preview of that fancy report you spent all day building).

The solution at first glance sounds complex…write some code to capture the event key, apply it to the form.  Nahhhh!  That’s for the over thinkers.  Find your button that is the one with the action you want to automate, and on it’s properties set .default to Yes.  That’s it! Now when you are entering in all that data into a search form, just press “Enter” and your data will show!

admin
No Comments

Sorry, the comment form is closed at this time.