Last active
April 15, 2020 07:39
-
-
Save bjoerntx/45ab90c3e8542e5a1e03e15141bc3642 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 getFormFieldByName(name) { | |
return new Promise(resolve => { | |
TXTextControl.formFields.forEach(function(formField) { | |
formField.getName(function(formFieldName){ | |
if (formFieldName === name) | |
{ | |
resolve(formField); | |
} | |
}) | |
}) | |
}); | |
} | |
var formField = await getFormFieldByName("Field1"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment