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

javascript in LiveCycle forms

nmara
Registered: Feb 4 2007
Posts: 102

I am no programmer, however I will be giving an introductory class on Adobe Pro 8. I am showing different examples on the different interfaces (both an Acroform and a LiveCycle form). On the Livecycle form I show an example using formcalc and the script editor, but I cannot for the life of me figure out the same calculation using JavaScript. Is it even possible to use javascript & Sum function in a liveCycle designer form? I have checked a couple of places and am getting opposing information.
 
I know in Acroforms you can do a custom calculation like this:
 
var f = this.getField("odomstart2");
var g = this.getField("odomend2");
event.value = g.value - f.value;
 
but that does not work in xml forms. Is something like that possible, or should I just give up?
 
Thanks a million,

My Product Information:
LiveCycle Designer, Windows
pddesigner
Registered: Jul 9 2006
Posts: 858
Some javascripts written for Acrobat will not work in LiveCycle unless the script is modified.

Follow this link to the manual titled - Converting Acrobat JavaScript for Use in LiveCycle Designer Forms

[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS_DesignerJS.pdf]http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJS_DesignerJS.pdf[/url]

My favorite quote - "Success is the ability to go from one failure to another with no loss of enthusiasm.

TheLegend
Registered: Feb 17 2010
Posts: 1
Need a good dummies hands-on tutorial for LiveCycle JavaScript. Any recommendations out there from anyone?
Dimitri
Expert
Registered: Nov 1 2005
Posts: 1389
Hi TheLegend,

Have you looked over the on-demand e-seminars available here at AUC? They are pretty good. Also in the Learning Center here there are 70 or so articles on many different pin-point scripting topics. Many have links for sample files with code that you can examine as you read through the articles.

My company's membership site www.pdfscripting.com also has on-demand video training for LiveCycle Designer PDF forms, as well as videos on Core JavaScript, which would be useful for a beginner.

Hope this helps,

Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com