Releases: oomphinc/WP-Forms-API
Update PHP dependency to support 7
Updates to checkbox and image fields
Updates checkbox handling to properly clear when unset and submitted.
Updates image fields to properly clear via X link and proper submission of name.
Ensure media assets are enqueued
This makes sure element types that use the media manager (attachment and image) will work on pages where media manager scripts/styles are not normally enqueued by default.
More flexible conditional element handling using CSS class toggling
The #conditional
property has been expanded to allow multiple values and multiple selectors for target elements, each mapping to a class. The older format of [ 'element' => '.selector', 'action' => 'hide', 'value' => 'value' ]
will still work for backwards compatibility, but the new format allows for much more flexibility by toggling classes on target element(s) based on the field's value.
'#conditional' => [ 'element value' => [ 'target selector' => 'class to add' ] ],
The classes you define can manipulate the fields in any way: showing, hiding, or any other CSS manipulations. To use the new format and simply show or hide fields, you can use the preexisting classes wp-form-conditional-show
or wp-form-conditional-hide
.
WP-Forms-API first stable release, now with composer!
Merge pull request #27 from oomphinc/balbuf/composerify Composerify the repo