Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created December 20, 2017 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/6cd37d5a16cfffb0bc2caabf7f7efe43 to your computer and use it in GitHub Desktop.
Save bjoerntx/6cd37d5a16cfffb0bc2caabf7f7efe43 to your computer and use it in GitHub Desktop.
var comboBox = new TXTextControl.ApplicationField();
comboBox.typeName = "FORMDROPDOWN";
comboBox.parameters = ["w:name w:val=\"Dropdown1\"",
"w:enabled w:val=\"true\"",
"w:calcOnExit w:val=\"false\"",
"w:listEntry w:val=\"Test1\"",
"w:listEntry w:val=\"Test2\""];
comboBox.text = "ComboBox";
comboBox.editable = false;
comboBox.doubledInputPosition = true;
TXTextControl.addTextField(comboBox);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment