Copy link to clipboard
Copied
I'm trying to create fields that are filled in sequence from an existing list of items that are selected by checkboxes. I need an item to fill the first field in the colum, unless it already contains data, if so, I need it to use the next field, and so on. I have a list of nearly 100 items that could potentially be selected.
I had limited success using an action builder in LiveCycle Designer and am able to duplicate data from the list into a form, but not to fill fields in sequence. If I select items 1, 8, and 15 from the list, or any other combination of items, I need it to fill in fields 1, 2, 3, etc. on my form. Hoping someone can help me with a JavaScript that would work for this. I'm thinking that the fields would need to adjust if an item is unselected as well. I am currently using checkboxes to trigger the items in the list.
Copy link to clipboard
Copied
So is this a PDF form built in LCD?
Copy link to clipboard
Copied
Yes it is. Appreciate any help that you can provide
Copy link to clipboard
Copied
I can't provide any help, I'm afraid. LCD forms are very obscure, and frankly kind of dead. I would strongly recommend you move to normal Acrobat forms.
Copy link to clipboard
Copied
Wouldn't the JavaScript be basically the same? Anyway, I have access to Acrobat forms, but am not as familiar with it. How would I create this same action in Acrobat Forms? Thanks again
Copy link to clipboard
Copied
Some things are similar, others are very different.
Generally speaking, the way I would approach this task is to collect all the data from the first set of fields into an array (only populating it with the non-empty values, of course), and then iterate over the second set of fields and populate them in order based on the values in the array.