Questions tagged [masking]

Force user input to conform to given rules.

Input masking restricts inputs for a given UI element without actually performing validation. Instead of collecting and validating user input, the masking approach restricts the inputs that a user can make in the first place.

An example of this would be a text field that is set to accept telephone numbers from a given country: instead of collecting digits and letters, and then validating them against the format, an input-masked field will only allow digits to be input, and will only accept them in an order that forms a valid input.

When dealing with arrays / matrices 'masking' means to ignoring certain parts of the array an only use the unmasked elements for further calculations.

1153 questions
-1
votes
1 answer

Masking middle 4 digit number using Javascript

I have Json Array data as shown below: { "AccountNumber":[ "123456789012", "234567891012", "345678912012" ] } Now I want to mask the middle 4 digit number only. as shown below: { "AccountNumber":[ …
-1
votes
1 answer

How to do constrained time input in HTML/Javascript?

I'm doing a website for a running club and I need runners to be able to input their race times as either hh:mm:ss or mm:ss (i.e., no hours required if under an hour). Ideally I'd like to be able to use some kind of mask with the colons, so that if…
John Moore
  • 6,739
  • 14
  • 51
  • 67
-1
votes
1 answer

Password masking with a batch file

In the current scenario, when I run the batch file, the window prompt to enter the password.When I enter the password, characters are visible in the window prompt. I want to mask password. As of now, for entering password, I have below code in my…
Kaushal Talniya
  • 182
  • 2
  • 5
  • 12
-1
votes
1 answer

Animating imageviews with autolayout and a mask

I'm trying to animate a stram of images in a view using auto layout. The animations are coming along nicely. However, I need the image be masked by the view they are animating in, they must not run off but must be cut off. This I just cannot figure…
Arne Oldenhave
  • 201
  • 1
  • 3
  • 12
-1
votes
1 answer

How to implement input text masking in React-Native?

The mask is needed: 90.99%, where: 9 - optional digit 0 - required %,. - relevant characters '%' and '.' For example: Input / Result 1 ---> 1% 12 ---> 12% 12.1 ---> 12.1% 12.12 ---> 12.12% I'm using redux-form I've tried…
-1
votes
1 answer

How do I mask the input with every key press as a character from a predefined string in an html input field?

My motive is to have the viewer believe that a certain string is being entered as input (by displaying it in the input field, character by character, with every key press) no matter what the actual input is.The said actual input must remain…
-1
votes
1 answer

Extra Number during Currency Masking in Javascript

I am trying to make a quick function for currency masking without the use of a jquery plugin. The environment I am in is using requirejs and any attempt to add plugins typically results in this problem: MISMATCHED ANONYMOUS DEFINE()…
Josh Whitlow
  • 481
  • 6
  • 25
-1
votes
1 answer

Subtract a mask from a string in Delphi 10.3

I collect resource dll file names into TStringList by a given mask. It works fine to that point. After that I want to collect the language codes contained by the file names. Is there any built-in function or a well formed regexp to get the right…
SOLID Developper
  • 672
  • 4
  • 12
-1
votes
1 answer

SQL Server Masking not working - Does work on Temp DB

When I run the below code on a Temp database it does work, but not when I run it on a normal table. Very weird and not sure what I am missing. CREATE TABLE #Test (Username VARCHAR(20)) insert into #Test (Username) values ( 'Graham' ),( 'Bill'),(…
Etienne
  • 7,141
  • 42
  • 108
  • 160
-1
votes
1 answer

Python - masking in a for loop?

I have three arrays, r_vals, Tgas_vals, and n_vals. They are all numpy arrays of the shape (9998.). The arrays have repeated values and I want to iterate over the unique values of r_vals and find the corresponding values of Tgas_vals, and n_vals so…
Laura
  • 9
  • 8
-1
votes
1 answer

Masking div content using svg image

Example: codepen.io/rudza/pen/NMqVEK There is a yellow div which will contain some image content. Also, there is svg speech_bubble. Would it be possible to mask the svg over the div to show only the content inside? And is it possible to keep…
R-J
  • 928
  • 1
  • 7
  • 24
-1
votes
1 answer

Masking a field in React without using plugins

I need to mask the SSN field as 123-45-6789 in React, My aim is to do that without using plugings like react-input-mask,input-mask etc. My input 123456789 Expected input 123-45-6789 Can we do that? By regex or something without plugings. Any help…
user9074131
  • 63
  • 1
  • 3
  • 12
-1
votes
1 answer

What is masking? (Bitwise operators)

I ran across an online explanation of what masking is with respect to bitwise operators, but was unable to fully understand the explanation due to the use of symbols that I'm not familiar with. Here is the demonstration: The specific line that…
SolarCalf
  • 31
  • 6
-1
votes
1 answer

How to move and crop image from masked image?

I have masked image successfully with the help of following link: How to Mask an UIImageView In above link there are two images named image.png and mask.png , After masking the image i want to crop the result image. My concern is that I want to…
Piyush
  • 1,534
  • 12
  • 32
-1
votes
1 answer

Achieve irregular rectangular shape image masking in html css

Is it possible to achieve such an effect in HTML5 and CSS3 , Please find the attached image Here I have two divs with overflow:hidden, inside each is an image. And when I hover each image, the image zoom in or moves up or down inside this same div…
Sohail
  • 2,058
  • 7
  • 33
  • 57