Hi @kolluax ,
AEM Adaptive Forms:
Masking: keep your current approach (on exit/blur, replace first 5 digits with *).
Unmasking: instead of looking for an ENTER event, use the field’s focus event. In Adaptive Forms, that’s the enter event (fires when the field gets focus).
==>
On exit/blur - mask value + save original in hidden field.
On enter/focus - restore original value from the hidden field.
In AEM Forms, use enter = focus and exit = blur. That’s the right event pair to handle mask/unmask behavior.
Hrishikesh Kagane