Support Article
Restrict users from clicking the link multiple times
SA-32400
Summary
There are multiple links in multiple sections which user wants to know if there is a standard approach to restrict users from clicking the link multiple times.
Error Messages
No error message but multiple cases of the same type gets created.
Steps to Reproduce
- On Link control configure on click event, run script action with "pega.ui.HarnessActions.addFlowFromActionsMenu" function.
- At runtime click on the link multiple times.
Root Cause
This is expected behavior.
Resolution
Perform one of the following local-change:
To enable or disable the link using a flag value, the flag would be true which will enable the link.
- Before the first action, invoke data transform to disable the flag(set it to false) which will disable the link and not allow users to act on the link.
- After all the actions are completed, run the data transform to enable the flag(set it to true) which will enable the link so that users can perform their action. Like this, it is dis-allowing the users by clicking on the screen multiple times.
To introduce a busy indicator on the screen so that users are informed that something is processing on the background.
Follow this link for the script configuration:
https://pdn.pega.com/support-articles/busy-indicator-not-displaying-after-modal-window-submit
Published January 30, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.