Google reCAPTCHA for Sprout Forms
Version 1.4.0
April 27, 2020
Added
- Added support for dynamically setting reCAPTCHA language based on current locale (#19)
Changed
- Updated reCAPTCHA 'Language' setting to 'Fallback Language'
- Updated polyfill rules when generating front-end resources
- Updated javascript resource loading order (#21)
- Updated Checkbox reCAPTCHA javascript and removed
beforeSproutFormsSubmit
logic
Fixed
- Fixed Checkbox reCAPTCHA throws an "Uncaught in Promise" error after checked (#22)
- Fixed HTML5 invalid message when two forms exist on the same page
Version 1.3.0
April 27, 2020
If you are using config overrides in
config/sprout-forms-google-recpatcha.php
will need to migrate those settings to Sprout Formsconfig/sprout-forms.php
. See thecaptchaSettings
setting in the docs and an example config (src/config.php
) in the plugins vendor folder.
Changed
- Updated captcha settings to use class name
- Updated
barrelstrength/sprout-base-forms
requirement to v3.10.0
Fixed
- Fixed error where settings assumed a file-based config existed (#16, #17, #18-PR)
- Fixed error message syntax
Removed
- Removed support for
sprout-forms-google-recpatcha.php
config in favor of the Captcha settings array insprout-forms.php
config
Version 1.2.0
April 9, 2020
Added
- Added support for config overrides via
config/sprout-forms-google-recaptcha.php
. Seesrc/config.php
for examples.
Updated
- Added polyfill for front-end javascript resources to support additional browsers
- Updated Invisible reCAPTCHA to use
onSproutFormsSubmit
Event - Updated Checkbox reCAPTCHA to use
beforeSproutFormsSubmit
Event - Updated javascript to target submit button element directly, instead of wrapper element (#12)
- Updated
barrelstrength/sprout-base-forms
requirement to v3.9.0 (#15)
Fixed
- Fixed issue where
onloadCallback
inline script could load after the script it depends on (#14) - Fixed bug parsing
.env
variables (#11)
Removed
- Removed
data-google-recaptcha-form-id
in favor of finding form element directly (#13)
Version 1.1.0
January 17, 2020
Added
- Added support for Invisible reCAPTCHA v2
- Added Invisible reCAPTCHA settings for Language, Theme, and Badge Type including a 'Inline Text' option to display a line of text terms instead of a badge
- Added Checkbox reCAPTCHA settings for Language, Theme, and Size (#1, #3, #332)
- Added support for using reCAPTCHA when displaying multiple forms on a page
Changed
- Updated setting 'Display default required CSS' to 'Disable CSS'
Version 1.0.5
April 30, 2019
Changed
- Updated icon
Version 1.0.4
April 23, 2019
Changed
- Removed unnecessary CSS (#272)
Version 1.0.3
March 15, 2019
Changed
- Updated
EVENT_REGISTER_CAPTCHAS
Event toRegisterComponentTypesEvent
Fixed
- Added support for Return Types on Captcha class (#5)
Version 1.0.2
November 26, 2018
Added
- Added async and defer to the Google Recaptcha api.js
Updated
- Updated JS to be rendered at the end of the document
Version 1.0.1
October 22, 2018
Added
- Added new packagist hook
Version 1.0.0
October 17, 2018
Added
- Initial release