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

looking for some code help

dcswofford
Registered: Apr 4 2011
Posts: 1

I recently created a form for an inpatient therapist. She uses this form to keep track of her patients, progress, etc. On the form, each patient has a row and as her patients are discharged she deletes that row. The problem is she either has to deal with blank lines in the form or she has to copy and paste the lower rows into the now blank rows and then delete them.
 
My question is, is there any code I can drop into livecycle that will make the lower lines move up as a row is deleted? In other words we have row 1,2,3,4, and 5. Row 3 gets deleted, I need row 4 and 5 to move up one row. Is that possible?
 
Thank you in advance for your help.

My Product Information:
LiveCycle Designer, Windows
maxwyss
Registered: Jul 25 2006
Posts: 255
I can't help with XFA (LiveCycle Designer) forms, but for PDF forms (AcroForms), I developed the tools for that years ago.

Feel free to contact me in private.

HTH.

Max Wyss.

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

this is possible.
Generally the form needs a flowing layout, that fit's automatically to the present content.
Then you can delete a row simply through a buttons script.

This script will delete the currently selected row, assuming that all rows have the same name "Row".
  1. _Row.removeInstance(Row.instanceIndex);
For a more detailed answer I need to know how your form looks like.
So, if you can share it, I can have a look on it.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs