Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
Is a dynamic Input Mask achievable?
posted

Hi there

I've been trying to make a sort of dynamic input mask that changes based on user input.

Expected:

1. If the first keydown is a word, it should render Canada Postal Code mask.

2. If it is a number, renders USA Postal Code mask.

Actual:

The input doesn't get updated with the new mask.

I also prepared a StackBlitz for this: https://stackblitz.com/edit/angular-9sr8ok?file=src/app/mask-sample-5/mask-sample-5.component.html

Parents
  • 960
    Offline posted

    Hello Jacky Nguyen,

    Thank you for making a post to our forum and sharing the reproducible sample.

    This is just a short notice that we received your inquiry and that we are under investigation about your issue. If we have an update, I'll let you know. So could you wait for a while?

    Thank you in advance.

Reply Children