Support Article
Spinner does not display on button Wait condition Flow Action
SA-93851
Summary
When a Button action is configured with a Perform action and the flow action takes more than two seconds to run, the Busy Indicator icon does not display.
Error Messages
Not Applicable
Steps to Reproduce
- In the flow, on a particular assignment configure two connectors.
- Configure the default flow action with a section with a button.
- OnClick configure the Perform action to execute the other flow action.
- Configure the optional flow action with a Wait (such that the action waits for more than two seconds) .
- Run the flow.
- Click the button.
Root Cause
A defect in Pegasystems’ code or rules.
Resolution
Perform the following local-change:
- Add below script in the UserWorkForm rule:
<script>
function showBusyIndicator() {
setTimeout(function() {
pega.u.d.setBusyIndicator(document.body, false, true);
}, 0);
}
</script>
- Add the 'Run Script' action with the 'showBusyIndicator' Function Name onClick of the button.
Published March 19, 2020 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.