Avatar

Correct answer by
Level 10

Hi Daniel,

You'll need to change the button click event code to call the validate routine, something like;

 

if (GitHub.IBAN().isValid(Iban.rawValue)) {

    // do something when valid

    app.alert('valid')

}

else {

    // do something if invalid

    app.alert('invalid')

}

 

Regards

Bruce

View solution in original post