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
Ananga Sen 13Ananga Sen 13 

Save on Enter Key press in VF page

When an Opportunity Owner is creating a New Opportunity, if they press the “Enter” key, the user will receive the following message “Do you want to save this Opportunity?” with buttons for “Yes” and “No”.
 
  • If the user selects “Yes” and all required fields have been completed, the opportunity will save and the opportunity owner will be taken to the newly created Opportunity Record.
  • If the user selects “Yes” before all required fields have been completed, the opportunity owner will receive the normal errors that state certain fields are required.
  • If the user selects “No”, the user will be taken to the “Opportunities” section.
VamsiVamsi

HI,

Please go through th4e following link and hope they would be of some help ..!!!

https://stackoverflow.com/questions/13987300/how-to-capture-enter-key-press-of

Pleases mark as best answer if the above helps ..!!