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
0
votes
1 answer

Input mask for date plus number

Is there way to make date + numbers mask?! I need to make 12/12/15-12345 input or even better 121215-12345. Input mask must check if date is correct and if after "-" is typed only 5 numbers. > var dateMask = new…
Rinalds Gudriks
  • 65
  • 2
  • 12
0
votes
0 answers

Input Mask variable

Question I have all the input masks set-up however I'm struggling to figure this one out logically.. So I have an input field for Gigabecquerels. However, as it currently stands the input could be like this 1,428.22Gbq, 428.22Gbq, 22.80Gbq So, how…
Danny123
  • 81
  • 1
  • 10
0
votes
2 answers

jquery masked input plugin set value digits

$(".id").mask("999-99-9999-999-99"); I have the above mask input format i want to know if it is possible to have a predefined value for x number of characters like for example I want the first 5 letters to have a default and unchangeable…
Pekka
  • 1,075
  • 2
  • 10
  • 17
0
votes
2 answers

How to allow an empty TDBEdit when the field has an EditMask?

I have set this TEditMask: DateTimeField.EditMask := '!99/99/9999;1; '; I have a TDBEdit which is linked to this field. The mask works for valid dates, but when the user tries to clear the input value (using the DEL key) it will cause an…
Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
0
votes
1 answer

How can we use Input Mask or format input in EditText Android

How can I format an EditText to follow the "######-##-####" format or input mask in android? And this EditText only allow number. How can i do that? just an example, when the user enter 123456781234 it will change to 123456-78-1234 The Edittext…
Diana Hudson
  • 3
  • 1
  • 4
0
votes
0 answers

Access Input Mask

I am not too familiar with input masks for access but I assume they are like those for say C#. Anyway, In a access 97 database, there is a Date/Time Mask of this - 99/99/00;0;_ so I am Converting this DB to 2013 and when I bring over the data,…
Robin
  • 165
  • 1
  • 3
  • 14
0
votes
1 answer

QLineEdit::setInputMask( const QString &mask ) - does not work

Here is the code: // Latitude line edit QLineEdit *lineEdit = new QLineEdit; lineEdit->setInputMask( ">\N999999.99;_" ); But, I am getting compiler warning: Unknown escape sequence '\N' and QLineEdit text does not contain 'N' character, only…
pau
  • 352
  • 3
  • 14
0
votes
2 answers

Input mask for Hex

QTextEdit needs to be tuned in such way that it should put space after each 2 symbols and it should check if these symbols are in sets from 0 to 9 or from A to F. for example I enter a2324Fcd and get A2 32 4F CD
Mouse
  • 119
  • 2
  • 9
0
votes
2 answers

Input removing leading 0

I have a form input field. I am attempting to format it based on focusout using jQuery 1.7.2 $('#calc_dr').focusout(function () { var…
Kevin
  • 2,684
  • 6
  • 35
  • 64
0
votes
1 answer

How to force JFormattedTextField value to change dynamically

I want to see a formatted number when I enter a number into a JFormattedTextField. For example, when a user typed in 124451000, it must be seen as 124.451.000 onscreen dynamically and not when a user presses Tab or Enter key. I want to put a dot…
Alify
  • 59
  • 1
  • 7
0
votes
0 answers

Dynamically add hyphen on serial number input field

I'm using JSF 2.0, jquery 1.9 and javascript. I also have RichFaces (no PrimeFaces). I have a serial number input field. The serial number has this format ABCD-1234-EFGH-5678 It can have any combination of numbers and digits. The only restrictions…
Nacho321
  • 1,911
  • 7
  • 33
  • 55
0
votes
1 answer

How to set field properties for Column in MDB using Java

I am creating a migration script for the MDB database. In this migration i need to add some Tables in the MDB. This script is written in Java and i am able to create Table with Column Names and their field types but i am not able to put other…
W A K A L E Y
  • 817
  • 1
  • 10
  • 14
-1
votes
1 answer

Regex phone masking

I'm trying to write phone input masking function. Here it is: let input = document.querySelector('input'); input.addEventListener('input', ()=>{ let x = event.target.value.replace(/\D/g,…
Oleg
  • 49
  • 1
  • 6
-1
votes
1 answer

input-mask (red mad robot) delete whitespace authomatically

I want to create mask for credit card mask for edittext in format like [0000] [0000] [0000] [0000], but not user should delete whitespaces manually For example: "4444_4444_4" "444_4444_" How to implement deleting of whitespace " "…
Strangelove
  • 761
  • 1
  • 7
  • 29
-3
votes
1 answer

How can I enable/disable one inputmask out of two?

I am developing one form in jsf/primefaces. I have two inputText(inputMask) for e.g moble number and telephone number. I want to restrict the user to put only one of these two fields . That means if user starts putting value in mobile no. then…
Dhiraj_N
  • 51
  • 1
  • 2
  • 8
1 2 3
15
16