This topic is locked

Dynamic Edit Masks

6/30/2023 2:25:17 PM
PHPRunner General questions
A
asawyer13 authorDevClub member

A question came up about trying to do something with dynamic edit masks.
I love edit masks in that they look so clean. Entering a phone number and the user only has to enter numbers and the field is formatted so nice and every phone value in the phone column is formatted the same.
In my case I need it to be a bit more dynamic as each customer as a country associated with it, so phone, postal code, etc could be different per country.
There was a blog post many years ago. See Here but the JQuery code is no longer available.
Do you think there might be a newer library and something that could be incorporated into PHPR that would work now?
Does anyone happen to have one that works already? of know of one that might be a good fit for PHPR?
Thanks
Alan

A
asawyer13 authorDevClub member 7/1/2023

I like the idea of adding the parenthesis and hyphens in a phone number automatically but I can live with the RegEx option instead of an actual Edit Mask.