Last active
April 15, 2020 07:46
-
-
Save bjoerntx/4310f5e3bb33567ee3dfe7114175897b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addTextFormField() { | |
TXTextControl.formFields.getCanAdd(canAdd => { | |
if (canAdd) { | |
TXTextControl.formFields.addTextFormField(0, function(insertedFormField) { | |
insertedFormField.setName("Field1"); | |
}); | |
} else { | |
alert("Form field cannot be added at this location."); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment