Button Field for Gridbox Content Apps

Button Field for Gridbox Content Apps
Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Phone field mask

1 year 6 months ago #1

  • Vanderlei Frari's Avatar
  • Vanderlei Frari
  • Posts: 87
Hi, folks

In Brazil we have 2 phone number formats. With 9 and 8 digits. I see that phone field does not accept 8 digits.
How can I solve this?





Until use phone field, I used to have a script for it with text field input:
$('.mask-fone input[type="text"]').each(function() {
    $(this).mask("(99) 9999-9999?9").on("focusout", function() {
      var len = this.value.replace(/\D/g, '').length;
      $(this).mask(len > 10 ? "(99) 99999-999?9" : "(99) 9999-9999?9");
    });
  });

1 year 6 months ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23518
Hello,

Thank you for contacting us!

The answer to your question in this post:
support.balbooa.com/forum/joomla-forms/10251-phone-forma#47382

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 6 months ago #3

  • Vanderlei Frari's Avatar
  • Vanderlei Frari
  • Posts: 87
Thanks, Vyacheslav.

There's no properties setting in phone field (only "general" and "advanced"). Even if the field had, just put a mask doesn't solve the problem, because the numbers in Brazil are interchangeable. Some regions are 8 digits, some 9.
Thanks

1 year 6 months ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23518
Unfortunately, there is no other solution.
You can use classic input field

Best Regards,
Vyacheslav, Balbooa Support Team

1 year 6 months ago #5

  • Vanderlei Frari's Avatar
  • Vanderlei Frari
  • Posts: 87
This was my first solution, but international customers are becoming more and more frequent. Globalized world ...
Thank you

1 year 6 months ago #6

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23518
Let us know if you need more assistance!

Best Regards,
Vyacheslav, Balbooa Support Team

1 week 1 day ago #7

  • Qbik's Avatar
  • Qbik
  • Posts: 526
please consider updating mask for Poland number to

"prefix":"48","placeholder":"XXX XXX XXX"

previously used is more less for stationary phone but its almost not used anymore

1 week 1 day ago #8

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23518
Hello,
Thank you for contacting us

You can use this solution
support.balbooa.com/forum/joomla-forms/1...-mobile-number#72105

Regards,
Vyacheslav, Balbooa.com

1 week 1 day ago #9

  • Qbik's Avatar
  • Qbik
  • Posts: 526
Yes i know that but still need to change it for all new installation ;)

1 week 1 day ago #10

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 23518
We will take this into account

Best Regards,
Vyacheslav, Balbooa Support Team

6 days 10 hours ago #11

  • Rim's Avatar
  • Rim
  • Posts: 43
Qbik wrote:
please consider updating mask for Poland number to

"prefix":"48","placeholder":"XXX XXX XXX"

previously used is more less for stationary phone but its almost not used anymore

+1
Powered by Kunena Forum