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

Submit button clicked twice to trigger button process

SA-95692

Summary



Double ( that  is, two) button clicks (after a pause) are required before the button process is triggered. This occurs intermittently.


Error Messages



Not Applicable


Steps to Reproduce

  1. Enter the Body measurements (that is, Height and Weight).
  2. Click the Submit button twice (after a pause).


Root Cause



A defect in Pegasystems’ code or rules.


Resolution



Perform the following local-change:

Use the below code to Set Focus on the Submit button.

<script> 
  setTimeout(function(){ 
  document.querySelectorAll('[data-test-id="myButton"]')[0].focus(); 
  }, 1000);
</script>


In this use case, the test-id of the button is 'myButton'. The name was used instead of the data-test-id.
Suggest Edit

Published March 28, 2020 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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