Questions tagged [input-mask]

A string expression, defined by a developer, that governs what a user is allowed to enter in as input in a text box.

An input mask is in general a set of rules, that entered data must conform to, mainly used for the purposes of data integrity by preventing transcription errors. The syntax of this string expression differs from implementation to implementation, but the fundamental input types are all supported.

Some frequent uses of input masks include entry of telephone numbers, ZIP or postal codes, times and dates.

229 questions
2
votes
3 answers

Why is Inputmask not properly handling a date?

Glancing through the source, it looks like loading the date extensions should allow me to use a mask like mm/dd/yyyy. Expected behavior: clicking into the field should allow me to enter something like 12/25/2018, replacing the mask with my input as…
crenshaw-dev
  • 7,504
  • 3
  • 45
  • 81
2
votes
1 answer

How to import and use RobinHerbots' Inputmask in Aurelia

I'm trying to use RobinHerbots' Inputmask in Aurelia but cannot seem to import it correctly. I've come across people discussing using this plugin in Aurelia but I could not find specific documentation on how to do this. After npm i inputmask…
flea
  • 45
  • 8
2
votes
1 answer

Input mask with thousand separator ionic 3

I need a thousand separator input mask directive or else with Ionic 3 app. I have tried 2 directives. But none of them were working. Do you know working directive for that? e.g. 50,000 .html
Sampath
  • 63,341
  • 64
  • 307
  • 441
2
votes
0 answers

Apply DevExpress mask for string

I'm using devexpress controlls for data entry in a C# desktop application. After the entry of validated text I am showing that data on separate asp.net web application. I want to show the entered data with the same devexpress mask applied (as a…
Gayan Dasanayake
  • 1,933
  • 2
  • 17
  • 22
2
votes
2 answers

SetInputMask In Acumatica

I need a masking settings that can be dynamic. and I found SetInputMask In development guide, but I do not find a way to use it, whether here there who have been using these SetInputMask? how the example to use it? Thank
Rozak
  • 33
  • 5
2
votes
1 answer

p:inputMask - how to customize the mask characters e.g. force input to capitalize certain letter

I would like to force input to capitalize a letter in certain position of text using p:inputMask. In jquery-plugins.js one can find following definition: a: "[A-Za-z]". My goal is to get something like: a: "[a-z]", A: "[A-Z]". Is it possible to get…
Serg
  • 41
  • 3
2
votes
1 answer

How to fix when tab clicked on first input screen scroll to top. Only in Chrome

How to fix this on website? Inside bottom form. I use input mask on second input (telephone). And when i disable this plugin tab work fine. This my code inputmask: $(".tel").inputmask("+7 999 999 9999",{ placeholder: " ", …
Maksim
  • 21
  • 2
2
votes
2 answers

JSF/Primefaces: How to make digit 9 a constant in Inputmask tag?

I want to add a inputmask which is supposed accept phone numbers in standard format. I want to give "input mask" for standard phone number format e.g: +92 321 9388233. So how to give +92 as a constant in mask? The digit 9 is not behaving as…
Rabia Naz khan
  • 507
  • 4
  • 13
2
votes
0 answers

on blur event not invoked when has a mask

When I use with a mask, then the attached to blur event is not invoked. There are no errors in the JS console. I've also tried . This works:
Rodrigo
  • 385
  • 3
  • 12
2
votes
1 answer

Dynamically change mask on bootstrap-inputmask.js

I am using bootstrap-inputmask.js to make my input masks on textboxes. I have this specific textbox where there are two possible masks and the current mask is defined by a checkbox. I have made this script using jQuery: