Hello,
Thank you for contacting us
You need to add an input, type text, make it requested ,
add a custom class
custom-vat-validation,
and add js in the code editor
document.addEventListener('DOMContentLoaded', () => {
$f('.custom-vat-validation input[type="text"]').on('blur', function(){
let match = /^[a-zA-Z]{6}[0-9]{2}[a-zA-Z][0-9]{2}[a-zA-Z][0-9]{3}[a-zA-Z]$/.test(this.value);
if (!match) {
this.value = '';
formsApp.toggleAlertTooltip(!match, this, this.closest('.ba-field-container'), 'ENTER_VALID_VALUE');
}
});
})
Regards,
Vyacheslav, Balbooa.com