HubSpot Ideas

CGuerreroDíaz

Validate some important fields with Regex masking

In Spain, and it's supposed to be worldwide, there are important fields that needs to be fulfilled correctly by the Sales/Marketing people, for example DNI (Identity National Number) or NIE (Foreign Identification Number).

 

As these two examples are crutial when filling data to be double checked, even more when there were integrations that uses them presumes that information were correct from origin, it should be a great workaround to allow the use of regular expressions as part of the Masking Rules of these kind of fields.

For example in Spain these 2 regular expressions are used often in regular Forms to check them:

 

var nifRegex = /^[0-9]{8}[TRWAGMYFPDXBNJZSQVHLCKE]$/i;
var nieRegex = /^[XYZ][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/i;

 

HubSpot Updates
In Beta
November 14, 2024 03:31 PM

👋I'm Rachel from the HubSpot Product team. Regular expressions for property validations are now in private beta (request access via Product Updates; Pro/Enterprise). Would love to hear any feedback you have on this feature via our in-app survey or this thread. Thanks! 

1 Reply
rwebb1
HubSpot Product Team

👋I'm Rachel from the HubSpot Product team. Regular expressions for property validations are now in private beta (request access via Product Updates; Pro/Enterprise). Would love to hear any feedback you have on this feature via our in-app survey or this thread. Thanks!