You need to sign in to do that
Don't have an account?
mallikam
Issues with command button
I have custom objects save command button on my page. Whenever I hit the enter key, the save command button is getting exectued and I want to avoid this. Instead, whenever a enter key is entered, I want the cursor to go the next corresponding field or in other words, I want to have control over enter key..how can I achieve it?
Pretty sure the normal default standard (IE you did plan HTML) would be enter on a field (except text area) is a submit.
That having been said you have
http://www.bloggingdeveloper.com/post/Disable-Form-Submit-on-Enter-Key-Press.aspx
Not sure how well this would work since it appears to go on the body which I am not sure we have access to here and you don't want to use the onkeypress.
All Answers
That would be breaking standard website functionality.
It would be like writing code to make check boxes work like radio buttons.
That having been said you would need to override the onkeypress event in javascript and change the enter to a tab.
http://www.w3schools.com/jsref/jsref_onkeypress.asp
I think you would have problems with text areas so you would probably need logic to deal with that.
Pretty sure the normal default standard (IE you did plan HTML) would be enter on a field (except text area) is a submit.
That having been said you have
http://www.bloggingdeveloper.com/post/Disable-Form-Submit-on-Enter-Key-Press.aspx
Not sure how well this would work since it appears to go on the body which I am not sure we have access to here and you don't want to use the onkeypress.
Make it "Software is about compromises"..life has got so many options!! :)