Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Answer Comparator

View the answer-comparator source.

Answer Comparator compares the current form entries to those that have already been submitted.

You can see the script in action here.

Steps to use the script:

  1. Download the source for your form.

  2. Add the following lines of code just before the closing BODY tag:

<script src="js/md5-min.js" type="text/javascript"></script>
<script src="http://js.jotform.com/JotForm.js"></script>
<script src="js/answerComparator.js"></script>
  1. Include these files in the directory with your downloaded form. md5.js is used for hashing emails so they can not be scraped on the front end. It can be downloaded here. If you are sure that your form will not contain emails, this functionality can be removed (from answerComparator.php).

  2. Include the JotForm API PHP file in your directory.

  3. Include your API key and FORM ID in answerComparator.php.

You are all set!