Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Iban validation

Avatar

Level 2

Hi,

LCD ES4

I have a Iban field and a BicSwift field.

For validation of the Iban I copied the script object "GitHub" BR001_ACP of 16 May 2014 and the button.

Unfortunately it does not work for me.

Thank you in advance for your help.

Daniel

1 Accepted Solution

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

6 Replies

Avatar

Level 10

Hi Daniel,

Is this the version you tried, https://sites.google.com/site/livecycledesignercookbooks/home/IBAN.pdf?attredirects=0&d=1,  There was a couple version at one time.  Seems to still be working for me ... do a ctrl-J so you can see the console output.

Are you getting any error messages.  Happy to look at your form If you post a link to it.

Bruce

Avatar

Level 2

Hi Bruce,

Yes, it is this version, with the script object and a button.


I added a iban field and called the  IBAN function "GitHub" by an action created with Action Builder.
It happens so nothing I added a text field that says: "Pointer: and a number" after entering an IBAN number and click the button. (?)


I'll send you a link.

Thank you

Daniel

Avatar

Level 2

Bruce,

My  Acrobat DC trial period has ended, and this message appeared when I tried your form:

"The loading of an application resource failed (internal error)"

This may be the reason it's not working?

Daniel

Avatar

Level 2

Hi Bruce

From your IBAN model, here's how I would use: 1  Iban field + Validation Button
I tried on another pc with Acrobat Pro 11 and Reader 11, but nothing happens.

IBAN2.pdf - Google Drive

Daniel

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

Avatar

Level 2

Hi Bruce,

it works perfectly.
Thank you very much for the help.


Regards

Daniel