Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created April 15, 2020 07: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/4a2899725c9accb14dcf3a514636a503 to your computer and use it in GitHub Desktop.
Save bjoerntx/4a2899725c9accb14dcf3a514636a503 to your computer and use it in GitHub Desktop.
function textFieldEnteredHandler(enteredField) {
if (enteredField.textField.type === "CHECKFORMFIELD")
{
TXTextControl.formFields.getItem(function(checkFormField) {
checkFormField.getChecked(function(checked) {
checkFormField.setChecked(!checked);
})
})
}
}
TXTextControl.addEventListener("textFieldEntered", textFieldEnteredHandler);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment