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

modadvisor free asked 3 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 free commented 3 years ago

let me know if any update please ?


Mikołaj Smoleński staff commented 3 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 free commented 3 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 3 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

Opened

Specification of the issue

  • ForumUser: 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