v0.6.0 - Gravity Forms v2.5 Support
This release adds support for all the new goodies in Gravity Forms v2.5, squashes a few bugs related to Captcha fields, and refactors the InputProperty
on various form fields.
New Features
- Added
customRequiredIndicator
,markupVersion
,requiredIndicator
,validationSummary
andversion
toGravityFormsForm
object. - Added
layoutGridColumnSpan
andlayoutSpacerGridColumnSpan
toformFields
interface. - Added
enableAutocomplete
andautocompleteAttribute
toAddressField
,EmailField
,NameField
,NumberField
,PhoneField
,SelectField
, andTextField
. - Added
displayOnly
property toCaptchaField
. - Added
allowedExtensions
anddisplayAlt
property toPostImageField
. - Added
sort
argument for filteringRootQueryToGravityFormsFormConnection
. Note: Attempting to sort on GF < v2.5.0.0 will throw aUserError
.
Bugfixes
- [Breaking]: Fixed the
captchaTheme
enum to use the correct possible values:light
anddark
. captchaTheme
andcaptchaType
now correctly returnnull
when not set by the field.- The
captchaType
enum now has a default value ofRECAPTCHA
.
Under the hood
- Refactor various
InputProperty
classes.InputDefaultValueProperty
,InputLabelProperty
, andInputplaceholderProperty
have been removed for theirFieldProperty
cousins, andEmailInputProperty
is now being used forEmailField
. - Tests: Clear
GFFormDisplay::$submission
between individual tests. - Tests: Allow overriding the default field factories.
- Tests: Add tests for
CaptchaField
.