Submit form when keyboard "go" button is pressed

Hello. I have single page form with some input fields. I want to submit form when i press “go” button on mobile keyboaord. There is any way?

you can try like this

(keyup.enter)="handleLogin()"

Hope it will work fine.
Thanks

1 Like

Ah, of course! Thanks :slight_smile: @flycoders_sourav

Do not forget to set the “enterkeyhint=go” If you also want to show the “go” button:

<ion-input enterkeyhint="go" (keyup.enter)="login()"></ion-input>

Check out their blog post about that: https://ionicframework.com/blog/keyboard-improvements-for-ionic-apps/