Go to file
2016-10-20 16:03:27 +02:00
blueprints.yaml now displays fieldsnames in alert message 2016-09-13 22:44:20 +02:00
CHANGELOG.md now displays fieldsnames in alert message 2016-09-13 22:44:20 +02:00
compare-form-fields.php now displays fieldsnames in alert message 2016-09-13 22:44:20 +02:00
compare-form-fields.yaml added files 2016-08-09 13:09:09 +02:00
languages.yaml you can now compare any 2 fields with options in the form frontmatter 2016-09-13 20:43:59 +02:00
LICENSE added files 2016-08-09 13:09:09 +02:00
README.md Added header to readme 2016-10-20 16:03:27 +02:00

Compare Form Fields Plugin

The Compare Form Fields Plugin is for Grav CMS.

Description

This plugin can compare any 2 fields in a form. Currently you can only compare 1 set of fields per form as that was all i needed.

To compare 2 fields you just add the compare_fields option in the process section of the form. After that you add the name property of the 2 fields to "field1" and "field2" options under compare_fields. Example below:

process:
  compare_fields:
    field1: "name of first field"
    field2: "name of second field"

License

This plugin is licensed under The MIT license.