About validating fields, input mask and so on.

  • Lionel Charrier
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
1 month 3 days ago #169889 by Lionel Charrier
About validating fields, input mask and so on. was created by Lionel Charrier
I am a bit confused about validation and input mask for fields.

I would like to force users to input their telephone number either with +33 x xx xx xx xx eg. +33 6 89 56 57 69 or 0x xx xx xx xx eg 06 89 56 57 69

I have used the exemple of the mask pattern in the documentation IMask(element, { mask: '+{33}(0)6 00 00 00 00', lazy: false, // make placeholder always visible placeholderChar: '#' // defaults to '_' }) and it displays IM in front end and does not accept any entry.

Is there are somewhere exemple that works so that I can understand.

Many Thanks
Scubabyss

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc