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