insin / inputmask-core

Standalone input mask implementation, independent of any GUI
MIT License
304 stars 52 forks source link

Allow rejection of input based on more complex criteria #11

Open insin opened 8 years ago

insin commented 8 years ago

Use case in this Stack Overflow quesrtion:

http://stackoverflow.com/questions/34146273/how-do-i-make-a-masked-input-that-only-allows-specific-numers

TroutZen commented 7 years ago

Also encountering a similar constraint where it would be nice to validate based on the value of a previous character. Use case being a date input where mask = "11/11/1111" of format "MM/DD/YYYY". If user inputs "1", then the only acceptable values for that month would be "0, "1", or "2".

andreasvirkus commented 6 years ago

Any plans to implement this? Would love what @TroutZen suggested.