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:

var v_oldtext = FORM.Main.txtInsert.rawValue;
var v_newtext = v_oldtext.replace(“[Address Here]”, this.rawValue);
FORM.Main.txtInsert.rawValue = v_newtext;
HTML Snippets Powered By : XYZScripts.com