Last active
September 23, 2020 09:47
-
-
Save stebrech/d0696a449626c996f56bb27e82cb3ec1 to your computer and use it in GitHub Desktop.
Keystroke script alows only defined characters
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
// Specify which character are allowed | |
var a = "123"; | |
if (event.change !="") { | |
if (a.indexOf(event.change) == -1) { | |
// Customize alert message | |
app.alert("Das verwendete Zeichen ist nicht erlaubt!", 1); | |
event.rc = false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Kudos to @jhillmer for sharing on https://www.linkedin.com/learning/pdf-formulare-mit-acrobat-dc/tastatureingabe-auf-zahlen-beschranken