Skip to Content (Press Enter)
Training
Training
Online Training
Developer Schools
Boot Camps
Certifications
Tech Talks
Documentation
Documentation
Overview
ODC
O11
Forums
Forge
Get Involved
Get Involved
Home
Jobs
Ideas
Members
Mentorship
User Groups
Platform
Platform
ODC
O11
Platforms
OutSystems.com
Personal Edition
Community
Resources
Support
Search in OutSystems
Log in
Get Started
Community
›
Forge
›
Assets list
›
CNPJ AlphaNumeric Mask
Login to follow
CNPJ AlphaNumeric Mask (ODC)
Stable versionÂ
0.1.0
 (Compatible with
 ODC
)
Uploaded onÂ
2 Jan
 byÂ
Leonardo Pires
Overview
Documentation
Support
CNPJ AlphaNumeric Mask (ODC)
Details
Detailed Description
This component provides a complete solution for CNPJ formatting, input control, and validation, compatible with both the traditional numeric model and the new alphanumeric CNPJ defined by the Brazilian Federal Revenue Service.
The official mask is applied in real time, ensuring a consistent and user-friendly typing experience. Cursor behavior is intelligently managed, handling Backspace, Delete, text selection, and navigation across mask separators.
Input follows official rules. Only alphanumeric characters are allowed, the last two check digits accept numeric values only, and input is limited to fourteen logical characters regardless of the mask.
The component includes client-side validation based on the official modulus eleven algorithm, supporting numeric and alphanumeric CNPJ using base thirty-six calculation.
During interaction, the component exposes the formatted CNPJ and the clean CNPJ without mask. Designed for OutSystems applications, it uses JavaScript.
License
BSD-3 license (https://opensource.org/licenses/BSD-3-Clause)
Loading
 Loading...