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

How to disable a Flow Action submit button until it commits data

SA-8527

Summary



Developers noticed that in some sections there are some fields which fetch values from external systems. In live environment, it takes few seconds to fetch the details from those external systems. In the meantime if user clicks on submit button before the data is loaded, the work object is is missing some mandatory data and creating other issues.So developer is now looking for the way to disable submit button present on flowaction until the screen loads completely.

Error Messages



Not Applicable
 

Steps to Reproduce



1. Create a section with some mandatory fields.
2. Configure these mandatory fields such that the data is fetched from external systems.
3. Click on submit button before loading the data on to this screen.

Root Cause



The root cause of this problem is a defect in the operating environment.
Because of slowness of network, it takes some time to fetch the information from external systems.

Resolution



This issue is resolved through the following Local-change:
Disabling submit button present on flowaction until the screen is loaded with all the details would resolve this issue.

To achieve this, save the userworkform HTML fragment rule in application rule set and include the below script.

<script>
var orig;
if(!orig)
orig = pega.u.d.setBusyIndicator;
pega.u.d.setBusyIndicator = function(busyInd, ignoreInterval){
orig.call(this,null,ignoreInterval);
};
</script>

 

This script will mask the entire screen until all the content is loaded.

Published June 12, 2015 - Updated October 8, 2020

Was this useful?

0% 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