cancel
Showing results for 
Search instead for 
Did you mean: 

Can I execute a Button when pressing "Enter" in an InputField?

Former Member
0 Kudos

Hi All,

I have an InputField and next to the InputField, there is a Button.

Ii would like to have my application executing the Button when the User presses the "Enter/ Return" Button on his keyboard.

Is that possible? If yes, how??

Thanks, Johannes

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can try using OnEnter property of the Input field for your requirement. Assign a method to the onEnter property of the input field and now when the user fills data in the field and press enter the method assigned will be executed.

Thanks,

Abhishek

Former Member
0 Kudos

Write the code to be executed on click of the button in a method and call this method from the event handler of the button.

For executing the button on click of enter call this method from the event handler of onEnter for input field.

Answers (1)

Answers (1)

Former Member
0 Kudos

Thanks!