Skip to main content
Participant
July 19, 2018
Question

How do I save my selections from a drop down-list using Adobe Acrobat XI?

  • July 19, 2018
  • 1 reply
  • 470 views

I have made an order form with dependent drop-down lists. When I open the PDF after saving, the list selections return to the default choice. Same issues in other PDF programs such as Blue Beam.

Drop Down List

Select and Save  Open File Returned to the Default Selection

Field Properties

The Java Script for the field is as follows:

var dependentListBoxFieldName = "Series.0";
var dependentListValues =
{
"1": [
  ["Select", "0"],
  ["ArcticFront™ Series 375-T Dual Thermal Doors", "a"],
  ["Balancer™ Series Balanced Doors", "b"],
  ["Entice® Series Entrance System", "c"],
  ["Monterey™ Series Entrance System", "d"],
  ["Premium Series Balanced Doors", "e"],
  ["Series 250 Narrow Stile Doors", "f"],
  ["Series 250-T Narrow Stile Thermal Doors", "g"],
  ["Series 400 Medium Stile Doors", "h"],
  ["Series 400-T Medium Stile Thermal Doors", "i"],
  ["Series 550 Wide Stile Doors", "j"],
  ["Series 550-T Wide Stile Thermal Door", "k"],
  ["Series 650-T High Performance Narrow Stile Thermal Entrance Doors", "l"],
  ["Series 700-T High Performance Medium Stile Thermal Entrance Doors", "m"],
  ["Series 750-T High Performance Wide Stile Thermal Entrance Doors", "n"],
  ["Series 800 Durafront Medium Stile Doors", "o"],
  ["Series 850 Durafront Wide Stile Doors", "p"],
  ["Series 900 Terrace Doors", "q"],
  ["Series 1000 Flush Panel Doors", "r"],
  ["Series 2000 Mall Sliders", "s"],
  ["Series 3000 Sliding Doors", "t"],
  ["Series E1200 Elephant Doors", "u"]
       ],
"2": [
  ["Select", "0"],
  ["Series 400SF Center Glazed Storefront", "v"],
  ["Series 450SF Center Glazed Storefront", "w"],
  ["ArcticFront™ Series 45X Dual Thermal Storefront", "x"],
  ["Series 451SF Center Glazed Storefront", "y"],
  ["Series FF450 Flush Front", "z"],
  ["Series FF451 Flush Front", "aa"],
  ["Series FT451 Flush Front", "bb"],
  ["Series FF600 Flush Front", "cc"],
  ["Series FF601 Flush Front", "dd"],
  ["Series FT601 Flush Front", "ee"],
  ["Series IT451 Center Glazed Storefront", "ff"],
  ["Unit-Glazed Systems", "gg"],
],
"3": [
  ["Select", "0"],
  ["Series 2100 Curtain Wall System", "hh"],
  ["Series 2200 Curtain Wall System", "ii"],
  ["Series 2202 Curtain Wall System", "jj"],
  ["Series 3150 Curtain Wall System", "kk"],
  ["Series 3250 Curtain Wall System", "ll"],
  ["Series 3252 & 3252SG High Performance Curtain Wall System", "mm"],
  ["Series 4250 & 4250T Curtain Wall System", "nn"],
  ["Series 4500 Curtain Wall System", "oo"],
  ["Series HP3253 High Performance Curtain Wall System", "pp"],

],
"4": [
  ["Select", "0"],
  ["Series 7200 Window Systems", "qq"],
  ["Series 7300 Window Systems", "rr"],
  ["Series 7400 Window Systems", "ss"],
  ["Series 7500 Concealed Vent Window Systems", "tt"],
  ["Series 7600 Concealed Vent Window Systems", "uu"],
  ["Series 8000 Single Hung Window Systems", "vv"],
  ["Series 8100 Fixed Window Systems", "ww"],
  ["Series 8200 Horizontal Sliding Window Systems", "xx"],


],
"5": [
 
  ["Select", "0"],
  ["Defender Series BR604 Storefront Systems", "yy"],
  ["Defender Series BR606 Storefront Systems", "zz"],
  ["Defender Series BR7500 Blast Resistant Concealed Vent Windows", "aaa"],
  ["Defender Series BT601 Blast Resistant Thermal Storefronts", "bbb"],
  ["Defender Series BW3250 Blast Resistant Curtain Wall Systems", "ccc"],
  ["Defender Series BW7600 Blast Resistant Concealed Vent Windows", "ddd"],
  ["Defender Series BW8000 Blast Resistant Single Hung Windows", "eee"],
  ["Defender Series BW8100 Blast Resistant Fixed Windows", "fff"],
  ["Defender Series BW8200 Blast Resistant Horizontal Sliding Windows", "ggg"],


],
"6": [

  ["Select", "0"],
  ["StormWall™ XL Hurricane-Resistant Curtain Wall", "hhh"],
  ["Series IG500 Hurricane Resistant Storefronts", "iii"],
  ["Series IG600 Hurricane Resistant Storefronts", "jjj"],
  ["Series IT600 Thermal Hurricane Resistant Storefront", "kkk"],
  ["Series IW7500 Hurricane Resistant Concealed Vent Window", "lll"],
  ["Series IW7600 Hurricane Resistant Concealed Vent Window", "mmm"],
  ["Series IW8000 Hurricane Resistant Single Hung Window", "nnn"],
  ["Series IW8100 Hurricane Resistant Single Hung Window", "ooo"],
  ["Series IW8200 Hurricane Resistant Horizontal Sliding Window", "ppp"],
  ["Series BAL-350 Hurricane (Impact) Resistant Balcony Terrace Doors", "qqq"],
  ["Series DH-350 Hurricane (Impact) Resistant Entrance Doors", "rrr"],
  ["Series DHS-500 Hurricane Resistant Storefront System", "sss"],
  ["Delta Doors - Hurricane Resistant Doors", "ttt"],


],
"7": [
  ["Select", "0"],
  ["Series BG450 BG Systems", "uuu"],
  ["Series BG520 BG Systems", "vvv"],
  ["Series BG525 BG Systems", "www"],
  ["Series BG600 BG Systems", "xxx"],
  ["Series BT525 BT Systems", "yyy"],
  ["Series BT600 BT Systems", "zzz"],
  ["Series ET350 Strip Window Systems", "aaaa"],
  ["Series 0S175 OS2 Systems", "bbbb"],
  ["Series 0S175SG OS2 Systems", "cccc"],
  ["Series 0S450 OS2 Systems", "dddd"],
  ["Series 0S450SG OS2 Systems", "eeee"],
  ["Series 0S451 OS2 Systems", "ffff"],
  ["Series 0S451SG OS2 Systems", "gggg"],
  ["Series 0S600 OS2 Systems", "hhhh"],
  ["Series 0S600SG OS2 Systems", "iiii"],
  ["Series 0S601 OS2 Systems", "jjjj"],
  ["Series 0S601SG OS2 Systems", "kkkk"],
  ["Series TN451 Top Notch Systems", "llll"],
  ["Series TN601 Top Notch Systems", "mmmm"],
  ["Series TT451 Top Notch Systems", "nnnn"],
  ["Series TT601 Top Notch Systems", "oooo"],
 

],
"8": [
  ["Select", "0"],
  ["Series 3600 Sunshade System", "pppp"],
  ["Series 7700 Aluminum Sunshade System", "qqqq"],
  ["Series 7750 Aluminum and Stainless Steel Sunshade Systems", "rrrr"],

 
],
"9": [
  ["487 Series Office Partitions", "ssss"],
 

             ]
};

if ((event.target.type == "combobox" && event.name == "Format") || (event.target.type == "listbox" && event.name == "Keystroke")) {
if (event.target.type == "combobox") {
  if (dependentListValues.hasOwnProperty(event.target.value)) {
   this.getField(dependentListBoxFieldName).setItems(dependentListValues[event.target.value]);
  }
  else {
   this.getField(dependentListBoxFieldName).clearItems();
  }
}
if (event.target.type == "listbox" && dependentListValues.hasOwnProperty(event.changeEx)) {
  this.getField(dependentListBoxFieldName).setItems(dependentListValues[event.changeEx]);
}
}
else {
app.alert("This script was not intended for this field type or event.");
}

This topic has been closed for replies.

1 reply

Bernd Alheit
Community Expert
Community Expert
July 19, 2018

Where have you placed the code?