Dynamic mask based on value length #915
-
What problem you are trying to solve? Describe the solution you'd like Describe alternatives you've considered |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
you can probably use or
|
Beta Was this translation helpful? Give feedback.
-
@uNmAnNeR i tried, but without success. What am I doing wrong?
<input
id="document"
name="document"
type="text"
required
inputmode="numeric"
v-imask="[{mask: '000.000.000-00'}, {mask: '00.000.000/0000-00'}]"
v-model="form.documento" /> |
Beta Was this translation helpful? Give feedback.
-
Question: Issue with Mask for International Phone Numbers Hi, I'm trying to create a mask for both domestic and international phone numbers using the following setup:
The issue I'm facing is that the + sign is always shown, even when the number is not international. How can I conditionally show the + sign only for international numbers? Any help would be appreciated! Thanks! |
Beta Was this translation helpful? Give feedback.
you can probably use
(00)00000000[0]
or