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

Upon tabbing old value getting appended with new value in grid

SA-33810

Summary



In a grid prepopulated with values, when users tab from field to field, sporadically the action which clears the prepopulated value does not fire and the user input is appended to the front of the pre-filled value.

Error Messages



Not Applicable

Steps to Reproduce



1. Populate a grid value with 0.00.
2. Do a post value and call a Data Transform with refresh other section on change event of each fields.
3. Use tab key to tab out and take the control to next field and enter some value.


Root Cause



When user moves from field to field the cursor moves to the beginning of the input field where in this use case, user is expecting it to be at the end.

Resolution



Use below code in UserWorkForm:

<script>
$(document).ready(function() {
$('body').on('focus', "input[type=number]", function(){
var _this = this;
setTimeout(function() {
_this.select();
}, 10);
});
});
</script>

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