CWP Registration Phone Country Choice

  • 1
  • Question
  • Updated 8 months ago
Hi,

I am currently implementing a CWP for our clients Guest PPSK Wi-Fi. This provides the option of both receiving the PPSK via email and TXT or both.

We have discovered that although they both work correctly, when selecting the phone number:

- The default Country is +1 United States. Is it possible to change the default to being the country which we are located so that users don't have to scroll through the countries to select the correct one, which is New Zealand?

- When typing the phone number after selecting the correct Country, as most of our mobile numbers start with a zero (0) it won't accept 021 etc... it'll only send the text when inputting without the zero, e.g. 21.

Note: Our VHM is in the correct time zone and time is reporting correctly on all the AP's. I can't find any options in the CWP customization that would allow to select the default country.

Thanks!
Jonathan
Photo of GingerIT

GingerIT

  • 2 Posts
  • 0 Reply Likes

Posted 8 months ago

  • 1
Photo of Fabien Gaille

Fabien Gaille

  • 53 Posts
  • 3 Reply Likes
Photo of GingerIT

GingerIT

  • 2 Posts
  • 0 Reply Likes
Hi Fabien, I've gone through and applied those changes as suggested by 'Terence Fleming ThinkWireless', however I'm having some major troubles with being able to successfully register on the portal page.

The registration is successfully showing 'New Zealand +64' as the default country, and I can go through and fill out the form successfully but I'm rejected in all instances with:

'Login Unsuccessful - You must enter either your phone number, email address, or both'.

It's almost as if by trying to change the index.html page with forcing a different country is inhibiting the ability for the page to recognize any text being put into either the email or phone number fields.

Any ideas?

I even took out the additional modification around the 0 prefix, so the only changes that were made is replacing 'United States' with 'New Zealand' below:

Copy of changes I've made:

                var content = '';
                // loop over all of the countries above
                for (var i = 0; i < allCountries.length; i++) {
                    var c = allCountries[i];
                    if('New Zealand' == c[0]){
                        content = content + '<option selected="selected" value="' + c[2] +'">  + ' + c[2] + ' - ' + c[0] + '</option>';
                    }else{
                        content = content + '<option value="' + c[2] +'">  + ' + c[2] + ' - ' + c[0] + '</option>';
                    }
                }


Thanks,
Jonathan