Numbers and Phone Validation

Profile Builder Pro - Numbers and Phone Validation - Thumbnail

Numbers and Phone Validation Add-on comes in handy when you want an Input Field, displayed inside a Registration or an Edit Profile form, to be made up of numbers only like a Zip Codes, Phone Number or a Custom ID.

 
 

Before proceeding with the installation of this add-on keep in mind that starting with Profile Builder Pro v2.4.4 you can add inside Profile Builder -> Manage fields -> Extra Fields Types like a Number Field, a Phone Field or a Validation Field.
If you are looking for an Extra Validation you will need to use the wppb_check_form_{field_type} filter.

Install Numbers and Phone Validation Add-on

First of all, click on the button below to download the add-on. Once downloaded, you can install the add-on as a normal WordPress plugin, by uploading the .zip file in your WordPress Admin -> Plugins -> Add New -> Upload Plugin.

Alternatively, you can install the Numbers and Phone Validation Add-On by extracting the folder found inside the archive and uploading the entire folder via FTP to your /wp-content/plugins folder found inside your WordPress install.

Get Numbers and Phone Validation – Profile Builder Add-on

Note – For Numbers and Phone Validation Add-On to work as expected, you’ll also need to have the following plugin installed and activated on your site:

Enable Numbers Only for an Input Field

Once the add-on has been activated head over to the Manage Fields page in Profile Builder. If you select an Input Field you will see that a new property named Numbers Only appeared below the other properties.

Profile Builder Pro - Numbers and Phone Validation - Number

Front End

Profile Builder Pro - Numbers and Phone Validation - Number in Registraton Form

Enable Phone Format for a Custom Input

Below the Numbers Only option you have the Phone Format option. Checking this option will make the Input Field to support only the Phone Format.

Profile Builder Pro - Numbers and Phone Validation - Phone Number

Front End

Profile Builder Pro - Numbers and Phone Validation - Phone Number in Registration Form