Iban validation | Community
Skip to main content
Level 2
February 15, 2016
Solved

Iban validation

  • February 15, 2016
  • 6 replies
  • 4932 views

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.
Best answer by _Bruce_Robertson

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
February 18, 2016

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

Dabo2Author
Level 2
February 18, 2016

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

Dabo2Author
Level 2
February 18, 2016

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

Dabo2Author
Level 2
February 19, 2016

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

_Bruce_Robertson
_Bruce_RobertsonAccepted solution
Level 10
February 22, 2016

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

Dabo2Author
Level 2
February 22, 2016

Hi Bruce,

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


Regards

Daniel