This topic is locked
[SOLVED]

 Is there way to hide credit card numbers on List and View Pages?

5/26/2012 12:08:59 AM
ASPRunnerPro General questions
jtksmith author

Is there a way to hide all but the last four numbers of a credit card field when displayed on the List or View pages?
I want it to display something like ****1234.

P
psenick 5/26/2012



Is there a way to hide all but the last four numbers of a credit card field when displayed on the List or View pages?
I want it to display something like ****1234.


You may want to take a look at the vbscript function right() . Here is a hyperlink for more

information, Right Function .
Hope this helps.
Paul

admin 5/26/2012

Use 'View as' type 'Custom' and the following code:

value = "************" & right(value,4)
jtksmith author 5/27/2012

Thank you Hawkeye.
The final code was:

strValue = "************" & right(strValue,4)