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

Capture Signature 'Accept'/'Cancel' option causes a scroll

SA-34392

Summary



Capture Signature 'Accept'/'Cancel' option cause a scroll to top of page. This is not ideal for user experience.


Error Messages



Not Applicable


Steps to Reproduce



Sign on signature control and accept. Screen is redirected to top of page.


Root Cause



The anchor tag corresponding to Accept or Control options for 'Capture Signature' control have their href attribute value as '#'.

This causes page to scroll to top when these links are clicked.




This is as expected.


Resolution



Place the below code snippet in UserWorkForm HTML fragment to prevent the reported behavior:

<script>

$(function() {

$('body').on('click','.signature-accept-action,.signature-clear-action', function(e){

e.preventDefault();

})

});

</script>

Suggest Edit

Published March 24, 2017 - 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