How to set up a country calling code

If you want to have a specific phone number format with a country code, add a custom JavaScript code.

  1. Log in to your account in Smartpages and navigate to the Dashboard of your landing page. Go to JavaScript Code.

You can also access the JavaScript Code section directly from the editor of your landing page.

  1. Click on Add script and copy the following code:
  1. Type in a name (1), paste your code (2), and select Body Bottom (3) and Main page (4).
  1. In one of the last lines of the code, enter the country code.
  1. Click on Add, the area code will appear in the form field:

Remember that the area code field in the form settings should have a phone attribute name.

Was this article helpful to you?

admin

Comments are closed.