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
Tools
Tools
ODC
O11
Platforms
OutSystems.com
Personal Edition
Community
Resources
Support
Search in OutSystems
Log in
Get Started
Community
›
Forge
›
Assets list
›
CNPJ AlphaNumeric Mask
CNPJ AlphaNumeric Mask
Stable version
1.0.0
(Compatible with
OutSystems 11
)
Uploaded
on
31 Dec (21 hours ago)
by
0.0
(0 ratings)
Overview
Reviews
Versions
Documentation
Support
CNPJ AlphaNumeric Mask
Documentation
1.0.0
Draft
Options
CNPJAlphaNumericMask
Formatting and validation of CNPJ (Brazilian company tax ID), compatible with the traditional (numeric) CNPJ and the new alphanumeric CNPJ.
Applies the mask __.___.___/___-__ in real time, correctly controls the cursor (including when using Backspace and Delete), and restricts typing according to the official rules of the Brazilian Federal Revenue Service.
It also has a client action for CNPJ validation, allowing you to identify if the entered value is valid.
During typing, it automatically provides:
Formatted CNPJ
CNPJ without mask (clean)
WidgetId
: ID of the input to which you want to apply the mask.
OnMask:
Event to obtain the formatted and unformatted CNPJ value.
UnMask
: Clean, unformatted CNPJ (Brazilian company tax ID).
Mask
: CNPJ with formatting.
Options
CNPJValidation
This function is responsible for validating CNPJs (Brazilian taxpayer identification numbers) in both the traditional (numeric) and new alphanumeric formats, according to the official rules of the Brazilian Federal Revenue Service.
It validates the check digits and returns whether the CNPJ entered is valid or invalid, regardless of whether it is formatted or not.
CNPJ
: CNPJ.
IsValid
: Verify if cnpj is valid.
How can i use this component?
You need to call the block next to the input you want to apply the mask to.
Define a name for the input.
In the component, you must pass the defined name.
In the OnMask event, you can obtain the CNPJ (Brazilian company tax ID) with and without formatting, and you can also validate the CNPJ there.
The component consists of a block that masks a numeric CNPJ (Brazilian company tax ID), and the new alphanumeric model.
Loading
Loading...