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>
Published March 24, 2017 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.