+ Start a Discussion
Dhitendra ReddyDhitendra Reddy 

Lightning Flow Browser Back Button


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?

Dhitendra Reddy
AbhishekAbhishek (Salesforce Developers) 

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.