Hello Dani ![]()
I can’t spot an issue, let’s debug the code, log the returned result in the Frontend , also, log the status on the Backend before returning it.
In the Frontend code, try to use async/await on the custom validation function and the validarIBAN() function since it returns a promise.
$w('#iban').onCustomValidation(async(iban,reject) => {
await validarIBAN(iban)
})
Try these suggestions.