Forums

Make output of name only leaves first & last character unmasked

kwok 27 Nov, 2016
Hi Bob,

In CF and CC,

Is there a way to mask a user name in a output field that only leaves the first and last character unmasked?

e.g. simonpop2 => s********2

Thanks,
kwok
GreyHead 27 Nov, 2016
Hi Kwok,

I don't know how to do this - and Googling around couldn't immediately find an answer :-(

I think it might be possible to do this with JavaScript using a second hidden input to hold the 'real' value and replacing the input with the 'starred' version. I haven't tried that though.

Bob
This topic is locked and no more replies can be posted.