Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active March 5, 2018 21:17
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/352bd04410fbaee93c2f32fc27e93966 to your computer and use it in GitHub Desktop.
Save bjoerntx/352bd04410fbaee93c2f32fc27e93966 to your computer and use it in GitHub Desktop.
var mergeFields = [];
TXTextControl.getTextFields(function(e) {
e.forEach(function(e) {
if(e.type == "APPLICATIONFIELD" &&
e.typeName == "MERGEFIELD") {
mergeFields.push(e);
}
});
});
console.log(mergeFields);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment