Hello,
I am using an IGMaskeditor for a USERID entry field so that the userid is folded to uppercase as the user types and I've noticed 2 bugs in the maskeditor.
$("#maskEditor").igMaskEditor({ inputMask: '>Aaaaaaaaaaaaaaaa' });
1) When I query the VALUE of the field, IG is padding the value with spaces at the end. Clearly the mask has those chars as NOT REQUIRED and NO spaces are allowed, so why is the value padded with spaces??
2) Also the mask defines that the space character is NOT allowed. While I can not actually type a space char, if I click into the middle of the entry field, it effectively creates spaces in the value.
My requirement for a userid entry is pretty simple : 1-18 chars, no spaces, upper case. How can I get MaskEditor to do this?
Please see this fiddle for my simple example : http://jsfiddle.net/54t8u8eL/
Thank you.
Hello C.J.,
Thank you for reporting the issue about the API documentation.
I wanted to let you know that it was already addressed and will be fixed.
When you specify the number of characters you want to have in the mask editor, it appears with the exact number of empty positions that can be filled. This allows you to move your curser to any available position and type in. And if you use the dateMode property you can specify whether the empty space position should be ignored or not.
If you have any other questions, don’t hesitate to contact me.
Thank you for the hint on dataMode. This does remove the spaces from the field. Although, the description of the RAWTEXT option says
"only entered text. All unfilled prompts (positions) and literals are ignored (removed). Note: that is used as default."
However it is NOT the default.
Also, it still looks bad to the user that they can click in the middle of the entry field and start typing. Regular entry fields don't allow - the cursor only goes to the last char that was typed. I think this control should do the same.
Thank you for using our community.
In order to have a mask editor that has no spaces, you should set the dataMode option to rawText. That way all unfilled positions will be ignored. I have updated your sample: http://jsfiddle.net/54t8u8eL/1/
If you have further questions, don’t hesitate to contact me.