Total Pageviews

Thursday, 1 August 2013

Livecycle Designer: Auto populate text fields based on DropDownList selected

var selection = this.boundItem(xfa.event.newText);
switch (selection)
{
  case "1": // Selection 1
    TextField1.rawValue = "Math 101:\nThis course is for...";
    break;
  case "2": // Selection 2
    TextField1.rawValue = "Math 102..."
    break;
}

1 comment:

  1. where do i put this code and if my dropdowm list is called something else does that matter

    ReplyDelete