Fork me on GitHub

New to DrupalGap Forms?

First, try creating a custom form.

Handling the Enter Key

Add this onkeypress attribute to a form element to have its form automatically submitted when the user presses the enter key on that element:

onkeypress: "drupalgap_form_onkeypress('" + form.id + "', event)"

Look at the password element on the user_login_form() for a complete example.