Pre-Fill and lock country code

MKagawa

New Member
Oct 18, 2022
1
0
1
Is there a way to prefill the country code for SMS Auth to "+1"? We want to restrict SMS auth to USA only (+1) and prompt the users to enter only their 10 digit phone number.

We are finding that a lot of users don't read and only enter their 10 digit number, then complain that they never get the text message.
 
The plus "+" is already automatically added by LF server.
You can add only "1" in the Phone Number filed with a custom Javascript
in "Admin > Configuration > Branding > StyleSheets and JavaScript Overrides".

Code:
$(function() {
    $('#phone_number').val('1');
  });
 
Last edited: