Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

  1. On Link control configure on click event, run script action with "pega.ui.HarnessActions.addFlowFromActionsMenu" function.
  2. 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.
  1. 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.
  2. 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.
(or)

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

Was this useful?

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us