Skip to main content
Level 2
Feb 15, 2016 6:31 PM UTC
Solved

Iban validation

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
_Bruce_Robertson
_Bruce_RobertsonAccepted solution
Level 10
Feb 22, 2016 12:49 PM UTC

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

6 replies

_Bruce_Robertson
Level 10
Feb 18, 2016 11:16 AM UTC

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

Translate
Dabo2Author
Level 2
Feb 18, 2016 5:52 PM UTC

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

Translate
Dabo2Author
Level 2
Feb 18, 2016 6:50 PM UTC

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

Translate
Dabo2Author
Level 2
Feb 19, 2016 3:58 PM UTC

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

Translate
_Bruce_Robertson
_Bruce_RobertsonAccepted solution
Level 10
Feb 22, 2016 12:49 PM UTC

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

Translate
Dabo2Author
Level 2
Feb 22, 2016 4:18 PM UTC

Hi Bruce,

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


Regards

Daniel

Translate