Here is a follow-up to the Form Flow and Expanding Tables tutorials that applies both lessons to a single form to create a table that can expand indefinitely without negatively affecting other objects.
Expanding Tables in Adobe LiveCycle ©
In this video I demonstrate how to create a table that can expand based on user input. Here’s the JavaScript code used for the command buttons:
cmdAdd:
// JavaScript to add a row to a table
var rowNum = this.parent.index +1;
this.parent.parent.instanceManager.insertInstance(rowNum);
cmdDel:
//JavaScript to delete a row from a table
var rowNum = this.parent.parent.index;
this.parent.parent.instanceManager.removeInstance(rowNum);
Text Insertion the Right Way
In this tutorial I show how text insertion can be done the right way. Many forms I see instert text as if the form was made to be filled out on paper. Hopefully, this lesson can help you bring your pdf forms up to date.
JavaScript used in this tutorial:
Form Flow
This tutorial demonstrates how a LiveCycle Designer PDF can be made to act and feel like a Word Processor using nested subforms with properly set form flow.
Hide Form Fields at Runtime in a Dynamic PDF
Here’s a video that demonstrates a simple JavaScript trick in Adobe LiveCycle Designer that allows a form designer the ability to place text elements on a form that are “optional”, giving the form filler the ability to hide those elements if they choose to.