function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
HyderabadHyderabad 

Re : CommandButton & Enter Key

Hello Everyone,

 

I Have a inputField, in which I'm performing my logic. My logic is when User enters a character in textField it will search in one of my custom Object & returns a list. This list contains the Names which starts with of entered Char. And thiswill display like a drop-down.

 

When I'm selecting from mouse it's working fine,

But, when I'm using arrow keys for selecting and when press enter that value is not displaying in TextFIeld. 

 

I think You got my point. Please help me.

 

Regards

RBC

srikanth123srikanth123

did you check using TAB instead of Enter key.

HyderabadHyderabad

Yes, for tab its working fine.

srikanth123srikanth123

is that fine or you want to use the Enter Key? What is currently happening when you press the enter key? I mean is it searching the custom object again and bringing the suggested list?

HyderabadHyderabad

All the Searched values displays as a Drop-Down, and when I selet a value and press enter that value has to populate in TextBox. When i Click on Enter. the submit button taking that Enter key submiting to thepage to Controller

srikanth123srikanth123

are you rerendering the text box once the value int he drop down is selected and enter key is pressed? it would be helpful if you post your code.