This is a migrated thread and some comments may be shown as answers.

How to mask all put last 4 digits of credit card?

1 Answer 573 Views
Input
This is a migrated thread and some comments may be shown as answers.
Scott Marx
Top achievements
Rank 1
Scott Marx asked on 08 Mar 2011, 04:16 AM
How would you use RadMaskTextBox to mask all but the last 4 digits of a credit card?

I want the Textbox to display as ####-####-####-1234.

Thanks in advance for your assistance.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 11 Mar 2011, 08:42 AM
Hello Scott,

This scenario is not supported. You cannot show both prompt characters and portions of values at the same time in RadMaskedTextBox. You can use custom javascript to implement that based on your scenario. If you share with us what exactly you are trying to implement, we may be able to advise you further. Do you need this format only for showing the last four digits of a credit card number, or also for entering such numbers? If you are only showing them to the user, and they come from the server, do you need to transfer the whole credit card number, or only the last four digits? Note that, if you send the entire number over to the client, it can be read from the markup even though it may not be visible in the textbox. Clarifying these aspects would help.

Veli
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Input
Asked by
Scott Marx
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or