Expand my Community achievements bar.

Button to Add Row

Avatar

Former Community Member
Hello Everyone,



I have added a 'table' to my form, with 5 columns and 2 rows. The first row is for labels. The second row is for input fields.



I am wondering if there is a function/button in LiveCycle I can add to this form where when a user click on it, the program will add a new row to the table. Please advise.



Thank you.
6 Replies

Avatar

Former Community Member
There is, but i can't seem to get it to work. Searching Dynamic Tables, or Dynamic Rows will give you alot of solution but i can't get it to work..



See: http://assets.devx.com/adobe/14706.pdf



See: http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf



I CANT FOR THE LIFE OF ME TO GET THIS TO WORK AND YET IT SEEMS TO TRIVIAL!!! :( :(

Avatar

Former Community Member
First thing to check is to make sure you save the document as a Dynamic Form type. Easily overlooked.

Avatar

Former Community Member
Unfortunately, setting up a table to add/delete rows is not as simple as adding a button and *poof*, it works. There is scripting involved along with lots of trial-and-error.



First thing, please do reference the above mentioned link and read it thoroughly. It will also help to open this PDF with Designer to see how it is set up.

See: http://www.adobe.com/devnet/livecycle/articles/AddingRemovingTableRows.pdf



You'll need to set up your table and edit the script to accommodate your table info (i.e., the exact rows you have, what your rows and columns are named, etc.) You'll need to view your Script Editor to do this and the appropriate command (select the Click event). It is there that you can change the script.



Being savvy enough to understand and use scripts is a must when creating tables to add/delete rows and other such features.

Good luck - hope this helps.

Avatar

Former Community Member
okay im going to go at it again today and try to do it. I've made sure to use a dynmaic form type, and i've reviewed the scripts pretty well but i can't get it to work as of today, but im gonna go try again. . .

Avatar

Level 2
Does anyone know if there is a way to validate each row that is added?

I have validation script on the first row and I do not know how to have the additional rows also validate.

Avatar

Former Community Member
so i finally got it to work. .



How would I make it move the form down as the fields are created?



I have tons of areas boxed out, and they would need to move down on the form?