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

Combine Text with adding table rows script

Biffnet7
Registered: Dec 9 2009
Posts: 36

Hello.

Using Livecycle I created a form with 5 or more text fields that I need to have combined into 1 text field on another page. I searched these boards and found a script to do this but one of the Text Fields is part of a table and the table is scripted to add and remove rows as the user needs. Is it possible to combine all the fields if one of the fields is being added or subtracted?

There has to be a better script for this? There must be a way to combine all the text with a random added row. Could it be done as a Click event when the form is finished being filled out?

The script I used was:
form1.Text.combinedtext::calculate - (JavaScript, client)
form1.Page1.Author.rawValue + "_" + form1.Page1.ISBN.rawValue + "_" + form1.Page1.Table.Row.DRV.rawValue + "_" + form1.Page1.Table.Row.Pages.rawValue + "_" + form1.Page1.Information_Overview.rawValue;

Thanks

Biff

Allen

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Have you watched this video on scripting dynamic features? It covers collecting data from repeated subforms, which is what your table is.

https://admin.adobe.acrobat.com/_a200985228/p87746471/

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

Biffnet7
Registered: Dec 9 2009
Posts: 36
This video helped a lot.

Thanks for posting. Do you have more?

Biff

Allen

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Yes, there are a whole bunch at www.pdfscripting.com, as well as articles and sample files.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script