Tagged: KeyPress Forms
This topic contains 3 replies, has 0 voices, and was last updated by Anonymous 9 years, 5 months ago.
- June 23, 2009 at 3:29 pm #231
Is it possible to run a behavior when the user presses the Enter key in my form? I see this behavior on the PerfectForms login page after you enter your email/password and want to reproduce on my own page.June 23, 2009 at 4:49 pm #4627
Yes you can do this.. Behaviours can be run under an event on a button, in this case on the ‘when button is pressed’June 26, 2009 at 3:12 pm #4629
Let me clarify…
On the PerfectForms login page you enter your username/password and press the Enter key to login. You don’t have to click the Login button. I am trying to mimic the behavior in my form. I want the user to be able to press the Enter key which will run a “Button is Pressed” behavior behind a button in my form. Instead, pressing the Enter key is tabbing between fields.June 26, 2009 at 3:30 pm #4630
Sorry, didn’t spot the ‘enter key’ .. replied initially based on ‘press a button’ ..
but this isn’t a ‘form’ that is doing this I’m afraid. it is part of the actual ‘application’ side.
but even so, you can could do this by running a script on one of the ‘events’ of that field. check it out perhaps first by using the ‘show message’ script to see which is the best ‘event’ that suits your requirements. Then its just a matter of replacing that ‘show message’ with whatever behaviours you are looking to run
You must be logged in to reply to this topic.