cancel
Showing results for 
Search instead for 
Did you mean: 

Submit a form with a ENTER KEY inside a InputField

Former Member
0 Kudos

Hi forum :

I have a jsp with htmlb, i have a inputfield and i want when i pushed the ENTER KEY, the form make a submit, tha´t is easy with javascript but i can´t do it with htmlb, ¿what can i do ?

thnks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Josue,

When you press ENTER KEY, you can make the form submit by setting the OK button as default button.

Try this..

<b><% myFormId.setDefaultButton(oKbutton); %></b>

Regards,

Uma

Answers (0)