These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Word Count in Acrobat 9 Pro

Hornetman
Registered: Jul 15 2009
Posts: 7
Answered

Hi all, brand new nooby to all things Javascipt. Have no understanding of how javascript works, just starting the process of understanding.

I've created a form in Acrobat 9 Pro, and have 2 Fields.

Field 1 Called "A" is for the user to type in 300 words max. Got Javascript from "http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=17727"
which is fantastic (Credit to Mr Jiggs) brings up message saying that there is more than 300 words

Field 2 Called "B" needs to have the amount of current words (not characters) the the user has typed in Field 1.

So if there is anybody can help me with a script I would be extremely grateful.

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Just use the first 3 lines from the same script and set the value of field B to nNumWords.

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

Hornetman
Registered: Jul 15 2009
Posts: 7
Thank you Try67 for such a quick reply.

Would it look like this then?

Selected Field B, Text Field Properties/Validate

var f=this.getField("A").value;
var aWords = f.split(" ");
var nNumWords = aWords.length;

Again I'm a nooby to Javascript and hope I've got this correct
redroses
Registered: Jul 15 2009
Posts: 1
Adobe Acrobat 9 professional creates refined Portable Document Format (PDF) files, facilitates PDF portfolio creation, improved color conversions, and extremely accurate document comparison feature. Among the thousands, few features which gives a good reason for spending your hard earned money on purchase of Acrobat 9 pro comprises, electronic document reviews, enhanced 256-bit encryption, new native flash support and improved forms.
[url=http://simulationcredit1.com][color=#DEDFDF][u] simulation credit immobilier [/u][/color][/url]
Bancato
Registered: Aug 7 2009
Posts: 1
He is 19 yrs old and had done this and that and will be with us for at least a yr.
[url=http://simulationrachatdecredit.org/][color=#DEDFDF][u]proprietaire simulation rachat credit immobilier consommation[/u][/color][/url][color=#DEDFDF] - demander un rachat de crédit, faites une simulation rachat de credit en ligne.[/color][url=http://simulationrachatdecredit.org/][color=#DEDFDF][u]proprietaire simulation rachat credit immobilier consommation[/u][/color][/url]