jQuery UI Widgets › Forums › General Discussions › Issue with JQXMasked input
Tagged: delete, empty, empty string, insert, JQXMasked Input, jqxmaskedinput, masked input, promptChar, text
This topic contains 5 replies, has 3 voices, and was last updated by Peter Stoev 9 years, 11 months ago.
-
Author
-
We are using JQXMaskedInput in our project.
In runtime, after entering the data in the JQXMaskedInput component. If we delete from the middle of the text, It deletes the number but it adds a duplicate entry of the last digit at the end.
Can we restrict this auto addition in the last on deleting a text.Please advice with your comments.
Thanks,
Divakar.Hello Divakar,
Please provide us with an example that demonstrates the reported issue. Make sure you are using the latest version of jQWidgets (3.6.0).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Sorry for the delayed reply.
Please find the example.
$(“#prpslId”).jqxMaskedInput({ width: ‘100px’, height: ’20px’,promptChar: “”, mask:’#######’});
Say for example, we enter 76667 in the above jqxMaskedInput on the screen and then we move to the 3rd position and delete one character. Now on screen it appends last character once again and displays as 76677.
In runtime, after entering the data in the JQXMaskedInput component. If we delete from the middle of the text, It deletes the number but it adds a duplicate entry of the last digit at the end.
We are using version – jQWidgets v3.5.0 (2014-Sep-15)
Please advice.
Thanks,
Divakar.Hi Divakar,
This issue occurs because you have set the promptChar property to an empty string and this value is not allowed for the property. You may instead use ” ” (space).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
Thanks for your suggestion.
I implemented promptChar as ” ” and tried.
Now by doing so, when I delete in middle a empty space is inserted in the middle.
Say for example, if I give input as “1234567”
and if I delete 4 then it shows “123 567”.Instead it should be shown as “123567 “. How to handle this?
Kindly advice.
Thanks,
Divakar.Hello Divakar,
” ” or any other char except empty “” should be used for jqxMaskedInput. If you do that, the widget will work correctly as shown in our examples. You can’t use Masked Input without Mask Characters.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.