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
raj_sfdccraj_sfdcc 

Prevent user from coming back in browser after submitting the form

i have a site called abc contains a form . after user fills the form and submit he will enter into the new page with success message.
Now the problem is if he press back button in the browser it will move to the form again with all enterd values.if he re submite the page Duplicate record is getting created. Please help me out how to avoid entry through back button.
NagendraNagendra (Salesforce Developers) 
Hi Raju,

May I suggest you please check with below link from the community with a similar discussion which might help you further. Please let us know if this helps.

Thanks,
Nagendra