
# Changelog

## 1.4.7 | March 5, 2025

- Fixed an issue where multiple Terms of Service checkboxes would not function correctly when the "Require Full Scroll" option was enabled.

## 1.4.6

- Fixed issue where the checkbox for Terms of Service could be switched to disabled after a validation failure which could then cause form submission to fail if there is conditional logic that depends on the Terms of Service field.
- Updated `require` call to use `plugin_dir_path()`.

## 1.4.5

- Updated Perk to use GP_Plugin class provided by Gravity Perks 2.0.

## 1.4.4

- Fixed a potential JavaScript error when using require scroll setting inside a GP Nested Forms child form.

## 1.4.3

- Added support for parsing merge tags in terms.

## 1.4.2

- Improved compatibility with conditional logic when using "Require Full Scroll." The checkbox will now be properly disabled when a Terms of Service field is shown.

## 1.4.1

- Fixed issue where pre-populated Terms of Service fields would become unchecked when navigating multi-page forms.
- Added "Update URI" to plugin header to improve security.

## 1.4

- Improved compatibility with Gravity Forms 2.5. (#4)

## 1.3.14

- Fixed null array access notice in PHP >= 7.4 (#1)

## 1.3.13

- Added tabindex to terms container to allow keyboard navigation and scrolling of terms.
- Updated plugin author.

## 1.3.12

- Fixed issue with GP Nested Forms where Require Scroll was not correctly disabling the checkbox.

## 1.3.11

- Fixed issue where ":include_terms" modifier did not work with GP Preview Submission.

## 1.3.10

- Updated UI with minor improvements.

## 1.3.9

- Added full translation support.

## 1.3.8

- Added support for translating checkbox label with WPML.

## 1.3.7

    - Added future compatability with the WYSIWYG CKEditor plugin.

## 1.3.6

- Fixed issue where shortcodes were parsed when loading ToS fields in the form editor, resulting in the replaced shortcode content saving over the shortcode itself.

## 1.3.5

    - Fixed issue where the ":include_terms" modifier was not working after conversion to GF_Field class.

## 1.3.4

    - Updated perk to use GP_Bootstrap
    - Updated minimum Gravity Perks version to 1.2.12
    - Updated minimum Gravity Forms version to 1.9.8.2
    - Updated GP_Terms_Of_Service class to singleton pattern
    - Updated plugin name from "GP Terms of Service Field" to "GP Terms of Service"
    - Replaced GWTermsofServiceField with GF_Field_Terms_Of_Service class which extends the GF_Field class for better integration with other 3rd party GF plugins

## 1.3.3

    - Fixed issue where adding field with GP Preview Submission activated resulted in AJAX error

## 1.3.2

    - Added support for replacing merge tags in terms content if GP Preview Submission is activated

## 1.3.1

    - Updated GF min required version to 1.9.3 for dependency on gf_apply_filters() function

## 1.3

    - Added support for shortocodes in terms
    - Added support for "include_terms" merge tag option for {all_fields} and individual ToS field merge tags
    - Added default support for HTML in terms (existing ToS fields will remain textareas)
    - Added support for proper styling on left and right aligned label forms
    - Added support for small, medium and large sized terms fields

## 1.2.4

    - Added support for translating terms with WPML

## 1.2.3

    - Added support for default styles to <ol>'s, <ul>'s and <p> in terms when "div" mode enabled
    - Added autop support to terms when "div" mode enabled
    - Removed field label from within terms when "div" mode enabled

## 1.2.2

    - Updated admin to correctly hide non-applicable choice-based settings for the ToS checkbox
    - Fixed small styling issue where ToS checkbox was too close to ToS textarea

## 1.2.1

    - Fixed issue issue where conditional logic was not working when dependent on ToS checkbox

## 1.2

    - Updated for GF 1.9 release
    - Fixed bug where the checkbox value was not persistent when navigating the form if require scroll option was enabled

## 1.1.3

    - Fixed two notices, one of which prevented adding a ToS field when WP_DEBUG was enabled

## 1.1.2

    - Fixed issue where "Require Full Scroll" option was not working when field was previously hidden by conditional logic

## 1.1.1

    - Fixed issue where terms textarea was no longer read only

## 1.1

    - Added experimental "div" mode which allows terms to contain HTML and other formatting
    - Added minimum Gravity Perks version of 1.1.14
    - Updated GWTermsofServiceField class to work with latest version of Gravity Perks

## 1.0

    - Updated Documentation to the new Gravity Perks method.
    - Updated JS scrollHeight conditional from (- 8) to (- 20). Fixed issues with older versions of IE

## 1.0.beta2.1

    - Fixed issue with determining if user has scrolled to bottom of terms in Chrome
