Improvements
- Default to an empty string value in conditional fields logic. This allows you to show or hide elements when a field is empty or has not been set yet.
Improvements
- Format dates, files and arrays when using data variables.
- Format dates, files and arrays on the submissions overview and submissions details pages.
- Allow cancelling a form's submit event in JavaScript (with
event.stopPropagation()
) to prevent form submission.
Fixes
- PHP notice because of namespace import outside of any namespace.
- Removed usage of PHP 5.4+ feature.
- Enforce HTTPS in form preview iframe when WP Admin uses HTTPS but public site does not.
Improvements
- Hook into GDPR Personal Data Export & Erase functionality. Requires WP 4.9.6.
- Allow updating stored Submissions with empty values. Allows clearing out IP address & user agents.
- Internal field should start with underscore to hide it in column view.
- Add for attribute to generated label element. Allows for simple multi-step forms.
Additions
- Add support for button clicks in conditional element logic.
Fixes
- Remove use of short-array syntax, which is only available in PHP 5.4 or later.
Improvements
- You can now hide columns on the submissions tab using screen options (in the top right corner).
- You can now disable saving submissions on a per-form basis.
- Allow pre-checking multiple checkboxes when using the field helper
- Fields with matching URL parameter names will automatically be prefilled.
- Use SVG icon in admin menu.
Additions
- Add simple action for subscribing to MailChimp. Requires MailChimp for WordPress.
Fixes
- Conditionally hidden fields are now ignored in server-side required field validation too. Thanks Jeroen Sormani!
Improvements
- Added foundational stuff for being able to handle file uploads.
Additions
- Added
hf_process_form
action to execute code before the form actions run.
Fixes
- Ensure form is fully functional in live preview.
- Show all forms on the forms overview page (limit was 5).
- Parse field variables in custom email headers. Thanks Jeroen Sormani!
Improvements
- You can now bind JavaScript events using the default browser API, eg
document.getElementById('hf-form-5').addEventListener('hf-success', ..);
- Only load JavaScript file on pages with a form on it.
- Don't add line-breaks in HTML generated by the Field Builder.
- Conditional elements now accept wildcard values:
*
- Available field variables in email action settings are now clickable.
Additions
- Added several action & filter hooks to enable advanced functionality in HTML Forms Premium.
Fixes
- Form preview was not working when WPML was activated.
Improvements
- Improved theme compatibility for the form preview.
- Print submission details as JSON instead of PHP object.
- Form messages are now added to the element as data attributes, so they can be used in JavaScript event callbacks.
Additions
- Conditional logic now accepts multiple values, separated by the |-character.
Fixes
- Conditional elements visible in form preview.
- WP_List_Table issue on forms overview page.
Improvements
- Allow disabling submission storage through a global setting.
- Hide submissions tab when submission storage is disabled.
- Prevent PHP notice if
$_SERVER
global is missing properties. - Update JavaScript dependencies.
Additions
- Filter:
hf_ignored_field_names
Fixes
- Incorrect role capability for administrators.
Fixes
- JavaScript error in some older browser when submitting the form.
Improvements
- Use custom user capability base for editing & viewing forms.
- Delay form response until a later hook so other plugins get a chance to hook in.
- Disable client-side validation for conditional fields marked as required.
Additions
- Added live preview to the form editor.
Fixes
- Array replacements in email message were showing "Array" instead of a comma separated list of values.
- Don't reset form when there are errors. Thanks Jeroen Sormani!
Additions
- You can now use certain template variables in the form content which will be dynamically replaced.
- Added
hf_validate_form_{$form_slug}
filter hook. - Added
hf_form_{$form_slug}_success
action hook.
Fixes
- Could not save more than one "Email" action.
Fixes
- Incompatibility with PHP versions before 5.6.
- Data variables could not be placed on the same line.
Improvements
- Clear output buffer before sending AJAX response to prevent issues with response parsing.
Additions
- Added
hf_form_message_{$code}
filter hook.
Additions
- Added support for conditional elements by using
data-show-if
anddata-hide-if
attributes.
Improvements
- Accept
id
argument in[hf_form]
shortcode. - Catch errors in shortcode's
slug
attribute. - Allow changing form slug after initial form is saved.
Fixes
- Fixes stylesheet URL when option to load stylesheet is toggled.
Fixes
- Form validation always failing when form has 0 required fields.
Improvements
- Fake success response when honeypot validation fails.
- Validate request by comparing size of POST array with number of form fields.
- Ensure submit button never has label element when using the field helper.
- Optimize URL generation of asset files on frontend.
Additions
- Added
hf_validate_form_request_size
filter hook.
Improvements
- Added SVG admin menu icon.
- Field names are now sanitized before they are saved in the database.
- Submit button was missing for default form fields.
- Unneeded
<form>
tags are now stripped from the form before saving.
Additions
- Added
data-title
anddata-slug
attributes to the<form>
element on the frontend.
Introducing a first version of HTML Forms, a different approach to forms for WordPress sites.