Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created May 3, 2023 11:18
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/a56dde7c2c0265cd94e99679ed29d71d to your computer and use it in GitHub Desktop.
Save bjoerntx/a56dde7c2c0265cd94e99679ed29d71d to your computer and use it in GitHub Desktop.
function setCondition() {
TXTextControl.subTextParts.forEach(function (stp) {
stp.getName(function (name) {
if (name == "txmb_details") {
stp.setData(editor.getValue(), function () {
$("#ribbonTabReports_btnPreviewMergeResults").click();
});
}
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment