Last active
September 24, 2020 09:22
-
-
Save stebrech/23fc3727f1c02671d9e3eac431ffa9bb to your computer and use it in GitHub Desktop.
Acrobat keystroke script allows only numbers
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
var b=/^\d$/ | |
if (event.change != "") { | |
if (b.test(event.change) == false) { | |
// Alert message to customize | |
app.alert("Bitte nur Zahlen verwenden!", 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