Skip to main content
Participant
June 20, 2023
Question

want to concatenate the all the line item fields in one line item field using scripting

  • June 20, 2023
  • 2 replies
  • 878 views

Hello everyone, 

I have a requirement where i have table with multiple line item and i want to concatenate the all the subsequent line items in tabel from same column into first line item field, For example after executing the form if there are three line item lets say

100

200 

300

then first line item field should have 100,200,300 stored in it for all the line items that will be ther after executing the form using scripting 

I have tried using FOR loop but it keeps repeating way too many times 

Any help will be appriciated 

This topic has been closed for replies.

2 replies

JR Boulay
Community Expert
Community Expert
June 20, 2023
Acrobate du PDF, InDesigner et Photoshopographe
Nesa Nurani
Community Expert
Community Expert
June 20, 2023

Please post script you are tried, we can't help you much if we don't know what you tried or how many fields you have or what are names of the fields...etc

When using loop, check that field is not empty and then add its value to the array, and then join the array and show concatenate result.

Participant
June 20, 2023

i only want the 139,140 to be my output but it keeps repeating 

im new to adobe forms and java script so i think i may have taking really wrong path here 

Inspiring
June 20, 2023

You have a XFA form and this is forum for PDF.