WordPress plugin
Smart Phone Field for Gravity Forms Pro
Smart Phone Field for Gravity Forms Pro extends the standard Gravity Forms phone field with country selection and validation. It can select a country from the visitor’s IP address and show a flag. You can also set a default country and preferred countries. As visitors type, the field formats numbers using one of four supported types, including E.164, and can add the country code to the submitted number. Validation can prevent submission when a number fails, with a custom message for phone field errors.
Country-aware phone entry
Smart Phone Field for Gravity Forms Pro extends the standard Gravity Forms phone field with country selection and validation. It can select a country from the visitor’s IP address and show a flag. You can also set a default country and preferred countries. As visitors type, the field formats numbers using one of four supported types, including E.164, and can add the country code to the submitted number. Validation can prevent submission when a number fails, with a custom message for phone field errors.
This setup fits contact, registration, quote request, application, and multistep forms that collect phone details from people in different regions.
Field settings and form behavior
- Choose from three flag options. Automatic country selection and the country flag are intended to work in popular browsers.
- Use multiple phone fields in one form, multistep forms, or multiple different forms on one page.
- Use the field with Gravity Perks nested forms.
- Retrieve city, ZIP code, country, and other available IP-based information through merge tags.
- Manage options through global settings. Pro also includes RTL support, translation support, and filter hooks for further configuration.
Setup
Install the Pro add-on, open the form in the Gravity Forms dashboard, and add or open a phone field. In that field’s settings, enable the smart phone field checkbox, configure the available options, and save the form. Visitors can then use the enhanced field in the published form.
Requirements
- PHP 7.4
- Gravity Forms 2.9.0 or higher

