Activity Forums Salesforce® Discussions In Salesforce, how can we stop the insertion of the record on the click of 'Enter Key' from the Keyboard? Reply To: In Salesforce, how can we stop the insertion of the record on the click of 'Enter Key' from the Keyboard?

  • Manpreet

    Member
    March 23, 2017 at 12:18 pm

    Hi Mohit,
    I have tried the below java script code in all the input fields and Command Button to avoid Enter functionality while creating the opportunity in my own visual force page.It is working very well for me.

    onkeydown="if(event.keyCode==13){this.blur();actionFunction();}"

     

    Thanks