Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

How to stop duplicate publishing requests?

Avatar

Level 2

Hi,

Sometimes, our authors click the publish icon 5 to 6 times instead of just one time.  We don't want to act on these duplicate clicks. What is the best approach to achieve this?

Thanks

Sri

3 Replies

Avatar

Community Advisor

Hi,

I think you will have to override the activate button functionality and can put a condition for already published page.

OR you can make a add on where if someone hover the activate button it will stop you by pop-up.

 

~ Prince 

Avatar

Level 10

Yup, better way would be to override the JS and disable the button till the time request for replication completes.

This approach is common and followed in many online forms to avoid duplicate submission.

Thanks

Avatar

Level 2

Hi Praveen,

Is there is any code snippet I can use? I am wondering how to do this customization. What JS I need to override? 

Thanks in advance!

Srini