This project has moved. For the latest updates, please go here.

Masked Text Box and copy/paste

Jan 17, 2011 at 3:40 PM

pasting formatted or unformatted value in a masked text box ends up with no value saved.

For example, if I have a phone mask like (___)___-____ , and paste 1111111111 or (111)111-1111 I wont have any value saved.

Also, if I paste the value without the mask completely selected, I will end up with something like 1111111111(___)___-____ in the masked text box. No value will be saved here either.

Would it be possible to accept the incoming value from the clipboard if it fits with the mask ? Or would it be better to just prevent the paste in this kind of box ?

Jan 17, 2011 at 4:11 PM

Thanks for bringins up this issue.  I never considered the pasting process, and was an oversight on my part.  I will convert this to an issue, and try to resolve it when I get the time.

Jan 17, 2011 at 4:11 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.