green.inputmask4angular
green.inputmask4angular copied to clipboard
Masking setting value is not working if preset value's char contains in new set value
Hi, I am facing this value.
Detail like, I am setting masking format like this-
5####
So, in the masked value, 5 will be first char and there will be 4 other numbers following it.
I am trying to set the value like this-
$('input[name="screeningNum"]').val($scope.viewModel.subjectDetails.screeningNumber);
where,
$scope.viewModel.subjectDetails.screeningNumber = "55555"
So, I am getting something like this-
5____
Can anyone please help?
My masking input is something like this-
<input type="text" name="randomizationNum"
data-ng-hide="!isModified()"
data-ng-maxlength="50"
data-ng-pattern="/^[a-zA-Z0-9#*\-_]*$/"
data-input-mask="convertMask(editingSubjectDetails.randomizationNumberMask)"
data-mask-option="randomizationMaskOption"
data-ng-model="editingSubjectDetails.randomizationNumber"
data-ng-change="validateRandomizationNumber()"
data-toggle="popover"
data-trigger="focus" />