I want to only allow only given mobile number format to type


Topic: I want to only allow only given mobile number format to type in text box

modadvisor asked 4 years ago

Dear Sir,

I am trying to adding regular expression to allow particular mobile number only able to type 800-798-4325 but can not working

Reg : /^(?=.*[0-9])[- +()0-9]+$/

the cursor position is continuous changing when type. please help to solve thanks


modadvisor commented 4 years ago

let me know if any update please ?


Mikołaj Smoleński staff commented 4 years ago

The pattern attribute allows validation on submit. In this case you'll need an input mask which will allow typing only defined pattern digits. It's in our roadmap and will be available in the future. Best regards


modadvisor commented 4 years ago

@Mikołaj Smoleński ok for now can you give me code for input masking to use in my current development ? Thanks


Mikołaj Smoleński staff commented 4 years ago

As I wrote above, it's in our roadmap and for this moment unfortunately we don't provide such feature. Best regards


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB Vue
  • MDB Version: 6.7.2
  • Device: PC
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: No
Tags