Most voted "mask" questions
63 questions
Sort by count of
-
58
votes7
answers115219
viewsMask for CPF and CNPJ in the same field
Hello, I looked for this doubt in the questions, but I could not find it. Well, I would like to make a field have the Cpf and cnpj masks depending on the number of characters typed. Here it doesn’t…
-
13
votes4
answers2688
viewsHow to add the ninth digit, fixed, using jQuery Mask?
How to add the ninth digit, in a fixed form, using the jQuery Mask? $('#telefone').mask('(00) 90000-0000'); This way I use is only optional.…
javascript jquery input mask jquery-mask-pluginasked 9 years, 6 months ago Marcelo de Andrade 7,261 -
11
votes5
answers64617
viewsMonetary mask with jquery.inputmask
How do I create a mask for a monetary value? I’m wearing this: $(".ValoresItens").inputmask('R$ 999.999.999,99', { numericInput: true}); was like: R$ ____. ____. _25,00 But I didn’t like these…
-
7
votes1
answer1325
viewsRecord records with the mask or remove before?
Contextualizing my question, kind of by convention of my old work environment I always recorded the records without the mask at the base, but a situation arose in my new job where they are saving…
-
7
votes3
answers15990
viewsMascara CPF/CNPJ ANGULAR 8 NG-MASK
I have a Component where I need the input to have the mask for Cpf or cnpj according to the data entry. I am using ng-Mask, but my validation for the mask is only working for the first validation.…
-
6
votes1
answer10799
viewsCPF/Cnpj Mask in Edittext
I have an Edittext field, I want to know how I can define a mask for it to format the text inserted in the corresponding format, CPF or CNPJ, I tried using the method described in this other…
-
5
votes2
answers4468
viewsInput mask with zeros on the left
I have a numerical type input, which should only receive numbers (obvious). However, some browsers let the user type alphanumeric. However, this is not the only problem. I need 0 to be displayed on…
-
4
votes1
answer1510
viewsMask for monetary values
I wanted to create a mask for monetary values, where the person would type and enter the scores and separations of the decimals automatically. Ex: R$ 1 R$ ,11 R$ 1,10 R$ 11,00 R$ 110,00 R$ 1,110,00…
-
4
votes3
answers6310
viewsProblem with brmask in Ionic 4?
Besides this mask I tried to use two others that resulted in the same error, which is the following: ERROR Error: Uncaught (in promise): Error: More than one custom value accessor matches form…
-
3
votes0
answers99
viewsJquery Mask with 8 or 9 digit phone
I am using Mask in Jquery to format the phone field with 8 hi 9 digits, but unfortunately I can only leave 8 or 9. If I leave 9, when the user type 8 it erases the whole field, does anyone know how…
-
3
votes1
answer2361
viewsHow to put mask on table with angular?
How to put monetary mask in a table ? For inputs I used the directive ui-money-Mask, but I need to put in a table cell. <td>{{item.valor}}</td>…
-
3
votes1
answer404
viewsError in monetary mask, saved with the right digits but at display time 2 digits are missing
Colleagues! When I save the product gets the correct digits as on the screen above. However, when I enter the list of products and click on the product Scissors it opens on the registration screen…
-
3
votes1
answer4402
viewsHow to use Angular input Mask
I use Angularjs and Ionic and am trying to use this Input Mask, but I don’t quite know how to do it. I follow the steps and yet this error appears: Angular Error. References in index.html:…
-
3
votes1
answer4164
viewsProblems with angular-input-masks?
I am trying to use this module that is available on github and I think this module is very complete, provides the masks I need, however is very confusing its documentation. The point is, I cloned…
-
3
votes1
answer446
viewsC# - CPF Mask
I’m looking to put a placeholder effect on a masking text box. The idea is to activate the CPF mask as soon as it enters the text box and disable it if the text box is empty when exiting. private…
c# textbox desktop-application mask placeholderasked 5 years, 9 months ago Pedro Henrique de Lima 33 -
2
votes1
answer3204
viewsCreate Phone Mask for Edittext
I’m trying to create a mask for my phone field, I saw some forums and tried the code below, but it is putting another pattern... I need to put in the pattern. EditText inputField = (EditText)…
-
2
votes1
answer1405
viewsI wonder if it is possible to have a phone mask in a text View
I would like to know how to have a phone mask in a text View field. In my case I have a listview with contacts where in each line of this listview appears the name of the contact and the phone. I’d…
-
2
votes2
answers696
viewsReplace an input value and keep the previous value
I need a input[type="text"], in which the user writes anything ("abc", for example), but in the visual appears other symbols, but keeping the previous value when picked up by Javascript or sent in a…
-
2
votes4
answers1978
viewsMask in Rails fields
Guys I’m getting beat up for something theoretically simple, I’m wanting to put a date mask on my application.js: //= require maskedinput jQuery(function($){ $("#datadoacao").mask("99/99/9999");…
-
2
votes1
answer157
viewsMask with jQuery or HTML
The Mask I need is this: 0000000-00.0000.0.00.0000 As I type in the input it is filled from right to left preserving the right zeros until it reaches the character limit of this string. Examples:…
-
2
votes4
answers6294
viewsMask with Jquery changing from fixed to mobile or vice versa
I have a Jquery mask for phone, depending on how much information the user type I understand whether it is mobile or landline. The mask for fixed: (55)9999-9999 cell phone: (55)99999-9999 the code…
-
2
votes4
answers990
viewsInput mask
I’m having trouble creating a mask for registration input. Registrations are 4 or 5 digits, hyphen , 1 digit. (0000? -0). The mask should be applied according to the typing of the input. But I…
-
2
votes1
answer69
viewsHow to use Jquery.Mask for input CPF using []
I am trying to use Jquery.Mask to insert a mask to a field with CPF but it does not work when the field has the following format: $("#Cpfpessoa[]") The input is like this: <input type="text"…
-
2
votes1
answer1344
viewsVue - How to apply a dynamic, data and data-free 'v-Mask' directive?
I’m using the v-Mask directive, but the component data is dynamic, so at certain times I use the component with mask and at other times without mask, but in the v-Mask directive, if I use it empty…
-
2
votes2
answers343
viewsInput with CPF/ CNPJ mask undergoing change by keys like TAB and ENTER
Good morning guys. I have an input where this is typed a value and as the size of this gets the mask CPF or CNPJ. The problem I’m having is that when a CPF is typed with the correct size for…
-
1
votes1
answer499
viewsMask in Ajax table
I own a autoComplete that I developed, where when typing some value, the system returns a table with the data of this autoComplete. This table is being returned via Ajax. However, I would like to…
-
1
votes1
answer87
viewsHide a javascript mask
Does anyone know how to hide Mask _ (javascript) for example on my site: Name: _ _ _ _ _ _ _ _ _ _ and I wanted to hide the "_". <script src="ajax.googleapis.com/ajax/libs/jquery/1.12.0/…;…
-
1
votes1
answer137
viewsHow do I apply monetary mask to my listview?
I would like to know how to implement my monetary mask on ListView products. I ask you to be the most specific and detailed as I do not have much experience. Thank you. public class ProdutoAdapter…
-
1
votes0
answers375
viewsHow to configure the ui-Mask clearOnBlur in an inline way?
Is there any way to configure the clearOnBlur of ui-Mask inline? According to the documentation, one of the ways to settar settings of ui-Mask is for Config Provider (or something like that), as in…
-
1
votes2
answers3152
viewsremove mask to save to database
I am using Maskmoney to create a mask in the field for the user to type. wanted to remove the mask, saving only the numbers and the comma (2 decimal places) in the bank. R$ 1.300.000,00 saving only…
-
1
votes1
answer388
viewsWhat does the ER look like to mask an Anumeric code?
I need to mask a 13-character alphanumeric code field while the user types, separated by hyphen, for example: 0DF7M3-R34X21 I’m using a function to apply the mask, so it would be applied as follows:…
-
1
votes1
answer862
viewsChange comma height and width with mask
I have a code that calculates the amount of rolls needed according to the width and height of the person’s wall. Currently the code for the mask of the comma is this: $('.virgula').mask('####00,00',…
-
1
votes2
answers2112
viewsMascara for money on android
I am creating a function for when the user type in a EditText , he returns me with a masca in the field, Example: Typing 1 returns "R$ 0.01" When typing 11 returns "R$ 0.11" and so on and so forth I…
-
1
votes1
answer979
viewsMasks in the Angularjs
I would like to know how to use the angular-input-masks. I did all the steps said in the same, but I couldn’t make it work. I’m using Angularjs, here’s my index page. <!DOCTYPE html> <html…
-
1
votes1
answer352
viewsLimit an Edittext from 1 to 100 and include the "%" symbol
I’m making an application that takes the data entered in a EditText and makes a certain calculation. The problem is that I need the field to go from 1 to 100%, but the "Mask" I’m using is too simple…
-
1
votes2
answers413
viewsInputmask Regex
I need a mask that gives me this result: FB.B0.C6.E2.65.EB.D3.09.42.EB.23.C0.23.BE.D5.EF.D6.BB.A7.7C-6 Note that between the dots the characters are random, may be letters and numbers, but every 2…
-
1
votes3
answers596
viewsVue component Mask is only applied when stirring the field
I’m learning to use vue and vuetify and I’m using a library to make fields with masks. The bike in question is Vue-Mask. When loading the component, the mask is not applied automatically unless I…
-
1
votes0
answers463
viewsAngular mask-input-masks in Angularjs
I’m trying to use the angular mask-input-masks in the Angularjs (Ionic v1) found in the link: https://assisrafael.github.io/angular-input-masks/ I follow all the steps in the documentation:…
-
1
votes1
answer198
viewsHow to disable ZIP Mask to save only Typed numbers when performing a Post - Asp.net MVC
I’m using a Remark component that has a data-plugin="formatter" where it applies a CEP mask to field. The field has a size of 8 characters, but the mask has 9 because of the "-" (Ex: 29780-000).…
-
1
votes2
answers3390
viewsHow to apply Dynamic Mascara in angular input?
I’m using Angular 8, example of mask would be landline and mobile phone. That is to count the number of characters and apply such mask. I am creating the mask with Ngx-Mask, trying with *ngIf in…
-
1
votes1
answer436
viewsProblem to set mask in an input field with Knockoutjs
I’m unable to apply a dynamic mask (CNPJ/CPF) to the input field of an application created in Laravel 4.2, using HTML5 and Knockoutjs. This is returning the following error message on the Chrome…
-
1
votes0
answers86
viewsMask with Jquery
I applied a monetary format mask and made a specification not to accept the first digit as 0. However, the following characters are still accepted "and, -, +,." Obs: the field is decimal. The mask…
-
0
votes0
answers93
viewsMake a condition to apply mascara to an Edittext
I can’t make a condition to apply mascara in an editText anyone help me please ? final EditText tel = (EditText) findViewById(R.id.phone); // Armazene seus TextWatcher para posterior uso //telMask =…
-
0
votes1
answer188
viewsField formatting Dateedit devExpress Windows Forms
I have a date formatting problem with the date component dateEdit of devExpress. I need the field date formatted as follows: 01/01/2016. And when typing the values, go to the next character without…
-
0
votes0
answers36
viewsCreate Mask in Framelayout
Fala galera, I have an image, and I’d like to create a mask, but I’m having a hard time. 1- I have this image 2- I would like to not touch the original size of the image, and present only a piece of…
-
0
votes2
answers3901
viewsCurrency Mask with jquery
I need a tag for a value field, I’m using jquery.maskinput works perfect but I have to enter the entire value! what I’m looking for is a mask that fills automatic " R$ var.000,00 " for example, if I…
-
0
votes2
answers1875
viewsJquery mask does not work
I’m trying to use the jquery mask, I’ll use it a < input > added by javascript by the action of selecting a < option >. <script src="jquery-1.5.2.min.js"></script> <script…
-
0
votes1
answer297
viewsHow to add a Jquery library to Magento 1.9
I was needing to add a Jquery library in Gento 1.9, to use on one of my phtml pages, to insert masks in my fields, such as Cpf, cnpj and etc ... I have done a lot of research and have observed that…
-
0
votes2
answers280
viewsJquery mask does not work within another Jquery script
I’ve been racking my brain for months and nothing. I believe it to be relatively simple, but I give up on breaking my head. 'Cause I’ve been racking my brain for months, I’m humbled to ask for help,…
-
0
votes2
answers117
viewsI need a mask that always puts the negative sign in front of the typed value
I need it this way: -20,00