🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Home Add-ons Brazil CEP Autofill Premium
Premium Integration

Gravity Forms
+ Brazil CEP Autofill Premium

A Brazil address type for Gravity Forms: type the CEP and the street, neighbourhood, city and state fill in. ViaCEP with BrasilAPI as fallback through your own server, CEP mask, CPF and CNPJ validators and Brazilian entries.

User User User User
+2k
4.9/5
Trusted by 2,000+ Agencies
Brazil CEP Autofill Premium

Watch it in action

Gravity Forms Brazil CEP Autofill: Fill the Address from the CEP, Validate CPF and CNPJ

Watch: fill a Brazilian address from the CEP and check CPF and CNPJ in Gravity Forms, step by step.

Core Features

Brazil address type: CEP, logradouro, número, complemento, bairro, cidade, UF, Brasil
Autofill on the 8th digit, cursor moves to Número, fields stay editable
ViaCEP first, BrasilAPI fallback, through your own server
Nonce, rate limit per visitor and cache
CEP mask 00000-000 and validation
Clear messages when a CEP is not found or the service is offline
CPF and CNPJ check-digit validators, alphanumeric CNPJ included
Brazilian format in entries, merge tags and exports
Works with AJAX, multi-page forms and several address fields
pt_BR translation

What does it do?

Brazilian customers expect to type a CEP and see the rest of the address appear. A Gravity Forms address field built for other countries asks for six things in the wrong order, offers a list of countries, has no place for the número or the bairro, and leaves your entries full of misspelt cities.

The Gravity Forms Brazil CEP Autofill Premium Add-on adds a Brazil address type: CEP first, then logradouro, número, complemento, bairro, cidade and a list of the 27 UFs, with Portuguese labels. When the visitor has typed the 8 digits, the street, neighbourhood, city and state fill in and the cursor moves to Número. Every field stays editable, and a CEP that is not found or a service that is offline never blocks the form.

Your own server makes the lookup, through a REST route with a nonce, a rate limit and a cache, using ViaCEP and BrasilAPI, two free services without a key. CPF and CNPJ validators (including the new alphanumeric CNPJ), the CEP mask, and the Brazilian address format in entries, exports and merge tags complete it.

How does it work?

The browser never talks to the CEP services. When the 8th digit is typed, the form script asks a small REST route of your own site, which checks a nonce and a per-visitor rate limit, answers from a cache when it can, and otherwise asks ViaCEP and, if needed, BrasilAPI. Only five cleaned fields come back, and the UF must be one of the 27 real ones. A service that failed is skipped for a minute. Número and bairro are saved as two extra inputs of the Address field, so entries, exports and merge tags keep them apart.

Interface Previews

Screenshot
Screenshot
Screenshot

How do I enable this?

1
Install and activate the add-on with Gravity Forms 2.9 or newer, then activate your license key in Forms → Settings → Brazil CEP.
2
Add an Address field and choose Brazil (CEP) as the Address Type.
3
Choose the data source, the cache time and the rate limit on the settings page.
4
Add the CPF or CNPJ option to the text fields that need it.
5
Type a CEP on your form, then check the entry and the notification.

Customer Reviews

Submit your review
1
2
3
4
5
Submit
     
Cancel

Create your own review

GravityExtra
Average rating:  
 0 reviews

Have a new Feature idea?

Didn't see a feature in our plugin that you think would be useful? Share with us and let the team be a part of it.

Submit a Feature Request
$39/year
All-Access PassNeed several add‑ons? Get all 835 Gravity Forms add‑ons with All-Access: $249/year for 10 sites.See the pass →
Add any 2nd item, get 30% OFF both!
Use code GFEX30 at checkout
Secure checkout via Stripe
What's Included
  • Automatic Yearly Renewal
  • 1 Year Free Support & Updates (Renewable)
  • 24x7 Dedicated Customer Care
24/7 Support
For any query, connect with us on our support portal.
Submit a Query →
Quick Info
Version 1.0.0
Tested with WordPress 7.1
Changelog
Icon
Gravity Forms Brazil CEP Autofill Premium
11 people are viewing this

Wait! Don't leave
empty-handed 🎁

Grab these exclusive codes to use at checkout!

10% OFF On all products
GFEX10
30% OFF Best Value
On any 2+ items
GFEX30

No thanks, I'll pay full price

Someone just bought this A few seconds ago
0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr