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
Dhitendra ReddyDhitendra Reddy 

Lightning Flow Browser Back Button

Hii

I have a flow which creates contact. Flow will be launched with button click on Account.
Once the contact is created, when I click on browser back button the flow is executing 2nd time and the duplicate contact is creating.

Can anyone suggest how can I prevent contact creation when back button clicked?

Thanks
Dhitendra Reddy
AbhishekAbhishek (Salesforce Developers) 
Hi,

The behavior rather than anything to do with Salesforce/Visualforce, so you'd need to trap the backspace key in the browser through JavaScript and block the standard behavior.

There are more discussion and code at

: http://stackoverflow.com/questions/1495219/how-can-i-prevent-the-backspace-key-from-navigating-back

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.