Inputmask icon indicating copy to clipboard operation
Inputmask copied to clipboard

Censoring or Partially Censoring Input on Blur

Open jamesrwaugh opened this issue 4 years ago • 1 comments

Hi, question:

I have a social security input field. The client wants everything but the last four numbers hidden on blur, or possibly on some other event, just as long as it happens.

Use scenario:

  1. I have a mask of "999-99-9999"
  2. User types SSN
  3. On blur, I want to show literal stars replacing the value: ***-**-1234
  4. The user can click back into the field and the stars will be replaced with their actual typed value.

I checked the issues and docs and didn't see a way to automatically do this, could I get some guidance on if this is possible?

jamesrwaugh avatar Jul 08 '20 00:07 jamesrwaugh

@jamesrwaugh is there any update on it?

navdeepghai1 avatar May 30 '23 18:05 navdeepghai1