Thursday, May 10, 2012

Acrobat -- Block Forbidden Words in Form Fields

Direct purchase using PayPal ($30 only)!

This script allows you to define a list of "forbidden" words which the users are not allowed to fill in the form fields in your PDF file.
The list can either be imported from a text file, or it can be entered manually.
You can also define what should happen if any of the forbidden words is entered. The options are:

  • Reject the text the user entered in its entirety.
  • Remove the forbidden words and accept the rest of the text.
  • Replace the forbidden words with something else (for example "XXX" or "***"), and accept the new text.
Also, for each of these options you can define an error message to be shown to the user, with the text you specify.

Here's how it looks like when you use the tool:

In the first dialog you make your selections, and enter the list of forbidden words.

When you press OK, the tool applies the required scripts to the selected text field.
If a user then enters text into one of those fields with one (or more) forbidden words, the tool goes into action when the field is exited.

In this case, the error message is shown:

And then the forbidden words are replaced by "XXX":

As can be seen, the tool is case-insensitive and will identify both exact matches ("Fuck" in this case) as well as partial matches ("shitty") to the list of forbidden terms.

For more information about this tool you can contact me directly.

No comments: