Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created February 12, 2021 20: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/b180d1b159692f9d44c51e2da5756ec2 to your computer and use it in GitHub Desktop.
Save bjoerntx/b180d1b159692f9d44c51e2da5756ec2 to your computer and use it in GitHub Desktop.
TXTextControl.formFields.getCanAdd(canAdd => {
if (canAdd) {
// Add form field
TXTextControl.formFields.addTextFormField(emptyWidth);
} else {
console.log("error");
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment