I had created a pdf in Acrobat Pro which has a 'drop down list' that, upon selection, auto populates multiple fields. I accomplished this by using addition the following under "Custom Keystroke Script":
if( event.willCommit )
{
if(event.value == " ")
this.resetForm(["field1", "field2", "field3",]);
else
SetFieldValues(event.value);
}
Then in the javascript "SetFieldValues" I added:
var Data = { "selection1" :{ field1: "item1",
field 2: "item2",
field 3: "item 3"},
"selection2" :{ field1: "item4",
field2: "item5",
field3: "item6"}};
function SetFieldValues(ctrl)
{
this.getField("field1").value = Data[ctrl].field1;
this.getField("field2").value = Data[ctrl].field2;
this.getField("field3").value = Data[ctrl].field3;
}
This all worked wonderfully; however, I wanted to add a pop-up calendar on the date field so I decided to use LiveCycle Designer ES 8.2. Now my auto-population does not work. Is there any suggestions on how I can set it to have both working correctly? I need the auto popluation fields (based on a single drop down menu) but would prefer to keep the calendar too...
Let me know if you have any thought, or is this not possible,
Thanks,
kbandstra
Message was edited by: kbandstra