I have a pdf saved as Dynamic XML Forms with a numeric field checked to limit length to visible area, but the "limit to visible area" option does not work. If save the same pdf as Static Form works fine.
Can someone provide an example or tell me how to solve it?
Thanks in advance
Views
Replies
Total Likes
Works fine for me. I tried it in version 9.0 and version 8.2.1. Can you post a sample of the issue?
Paul
Views
Replies
Total Likes
In the change event you can place the following script (Java Script)
if(xfa.event.newText.length >maxLength)xfa.event.change = "";
Replace the "maxLength" with the maximum numbers you want the user to enter..
Thanks
Srini
Views
Replies
Total Likes
Hi,
I working LiveCycle Designer ES 8.2.1 and use Adobe Reader 8.1.
Attached a simple example.
http://fileurls.com/rvydpi (test_limit_length_as_dynamic.pdf)
http://fileurls.com/pqyqce (test_limit_length_as_static.pdf)
Thanks.
Views
Replies
Total Likes
Just tried both of them here and they work fine. What version of Acrobat/Reader are you using?
Paul
Views
Replies
Total Likes
It doesn't work in Adobe Reader 8.1.
Can you try with this version?
Thanks.
Views
Replies
Total Likes
You are right. I reproduced it in version 8.2. I originally used version 9.3.1 and it worked fine .....so what ever was broken has been fixed in a later release. Can you upgrade to a later version?
Paul
Views
Replies
Total Likes
Hi Paul,
Not is possible upgrade version Adobe Reader, my users works with version 8.1 and they can not upgrade it
Do you know another alternative to solve this problem?
Thanks
Views
Replies
Total Likes
You could add this javascript code to the change event:
var fieldInput = xfa.event.newText;
if (fieldInput.length > 10){
app.alert("You have reached the maximum field length!")
}
Each time the user enters a value into the field the change event will be fired. We can get the input and test its length. If it is graeter than what we allow then we display the message. This will not stop the user from adding more chars but the message will popup for each additional char that is typed.
Is this acceptable?
paul
Views
Replies
Total Likes
Hi Paul,
I dont like the idea of use popup message, could be tedious for the users, further that as you says this solution will not stop the user from adding more chars.
I hope to find another solution.
Thanks again
Views
Replies
Total Likes
In the change event you can place the following script (Java Script)
if(xfa.event.newText.length >maxLength)xfa.event.change = "";
Replace the "maxLength" with the maximum numbers you want the user to enter..
This way it can stop the user to enter more characters after reaching the maxLength.
Thanks
Srini
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies