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
Solved! Go to Solution.
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
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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.
Daniel
Views
Replies
Total Likes
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
Hi Bruce,
it works perfectly.
Thank you very much for the help.
Regards
Daniel
Views
Replies
Total Likes