| 1 |
Changelog |
| 2 |
========= |
| 3 |
|
| 4 |
#### 1.3.17 - Dec 21, 2020 |
| 5 |
|
| 6 |
- Forms are now sortable by name on overview page. |
| 7 |
- Update internal dependencies to their latest versions. |
| 8 |
- Add `role="alert"` to form messages. |
| 9 |
- Optimize size of public JavaScript file (25% size reduction) by rewriting some dependencies. |
| 10 |
- Add filter for tabs in admin area. |
| 11 |
|
| 12 |
|
| 13 |
#### 1.3.16 - May 6, 2020 |
| 14 |
|
| 15 |
- Add filter hook for successful form responses: `hf_form_response` |
| 16 |
- Only try to detect WPBruiser hidden input fields whenever that plugin is activated. |
| 17 |
- Stop explicitly enabling shortcodes in text widgets as this is now handled by WordPress core (as of version 4.9). |
| 18 |
- Explicitly set engine and charset on submissions database table. |
| 19 |
|
| 20 |
|
| 21 |
#### 1.3.14 - Nov 6, 2019 |
| 22 |
|
| 23 |
**Improvements** |
| 24 |
|
| 25 |
- Stop using `supress_filters` argument when retrieving forms, for a possible performance improvement. |
| 26 |
- Prevent extra SQL query for options when global settings have not been saved yet. |
| 27 |
|
| 28 |
|
| 29 |
#### 1.3.13 - Oct 18, 2019 |
| 30 |
|
| 31 |
**Fixes** |
| 32 |
|
| 33 |
- Special HTML characters being encoded even in plain text emails. |
| 34 |
|
| 35 |
**Improvements** |
| 36 |
|
| 37 |
- HTML tags are no longer stripped from field values, so forms can now accept HTML. HTML is still escaped upon display to prevent XSS. |
| 38 |
|
| 39 |
|
| 40 |
#### 1.3.12 - Oct 11, 2019 |
| 41 |
|
| 42 |
Compatibility with Mailchimp for WordPress 4.6. |
| 43 |
|
| 44 |
|
| 45 |
#### 1.3.11 - Sep 17, 2019 |
| 46 |
|
| 47 |
**Improvements** |
| 48 |
|
| 49 |
- Write results from Mailchimp action to MC4WP debug log. |
| 50 |
|
| 51 |
|
| 52 |
#### 1.3.10 - Sep 5, 2019 |
| 53 |
|
| 54 |
**Fixes** |
| 55 |
|
| 56 |
- PHP warning introduced in latest update when using array fields. |
| 57 |
|
| 58 |
|
| 59 |
#### 1.3.9 - Sep 2, 2019 |
| 60 |
|
| 61 |
**Fixes** |
| 62 |
|
| 63 |
- Strip out [](https://wordpress.org/plugins/goodbye-captcha/WPBruiser](https://wordpress.org/plugins/goodbye-captcha/](https://wordpress.org/plugins/goodbye-captcha/) token field to prevent it from being stored. |
| 64 |
|
| 65 |
**Improvements** |
| 66 |
|
| 67 |
- Add filter hooks to variables inside the email action. Thanks to [](https://github.com/ryansalernoRyan Salerno](https://github.com/ryansalerno](https://github.com/ryansalerno). |
| 68 |
|
| 69 |
|
| 70 |
#### 1.3.8 - May 28, 2019 |
| 71 |
|
| 72 |
**Fixes** |
| 73 |
|
| 74 |
- Invalid HTML for generated textarea tag. |
| 75 |
|
| 76 |
**Improvements** |
| 77 |
|
| 78 |
- Improved HTML escaping, preserve double and single quotes. |
| 79 |
- Explicitly set charset of HTML emails to UTF-8 by default. |
| 80 |
- Escape HTML after limiting string length, not before. |
| 81 |
|
| 82 |
|
| 83 |
#### 1.3.7 - April 8, 2019 |
| 84 |
|
| 85 |
**Additions** |
| 86 |
|
| 87 |
- Add Gutenberg block for adding shortcode to content. |
| 88 |
- Add setting in field builder for the `multiple` attribute on `<select>` elements. |
| 89 |
- Add `hf_get_forms()` function for retrieving multiple form objects. |
| 90 |
|
| 91 |
**Improvements** |
| 92 |
|
| 93 |
- Add `edit_form` capability to user that activates the plugin. |
| 94 |
|
| 95 |
|
| 96 |
#### 1.3.6 - March 27, 2019 |
| 97 |
|
| 98 |
**Improvements** |
| 99 |
|
| 100 |
- Don't strip HTML from variable replacements in HTML emails. This change allows you to link to uploaded files properly. |
| 101 |
|
| 102 |
|
| 103 |
#### 1.3.5 - January 29, 2019 |
| 104 |
|
| 105 |
**Improvements** |
| 106 |
|
| 107 |
- Allow adding form field variables to the form's redirect URL. |
| 108 |
|
| 109 |
|
| 110 |
#### 1.3.4 - January 9, 2019 |
| 111 |
|
| 112 |
**Improvements** |
| 113 |
|
| 114 |
- Reload available field variables when adding action on form settings page. |
| 115 |
- Add role="alert" attribute to all form messages. |
| 116 |
- Emit "message" event whenever message is shown to user. |
| 117 |
|
| 118 |
|
| 119 |
#### 1.3.3 - November 6, 2018 |
| 120 |
|
| 121 |
**Fixes** |
| 122 |
|
| 123 |
- Fix selected state of email content type. |
| 124 |
|
| 125 |
**Improvements** |
| 126 |
|
| 127 |
- Add filter & action hook for extending forms with custom messages & message settings. |
| 128 |
- Don't add line-breaks automatically when using HTML emails. |
| 129 |
- Delete all related postmeta when deleting a submission. |
| 130 |
|
| 131 |
|
| 132 |
#### 1.3.2 - Aug 6, 2018 |
| 133 |
|
| 134 |
**Improvements** |
| 135 |
|
| 136 |
- 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. |
| 137 |
|
| 138 |
|
| 139 |
#### 1.3.1 - June 12, 2018 |
| 140 |
|
| 141 |
**Improvements** |
| 142 |
|
| 143 |
- Format dates, files and arrays when using data variables. |
| 144 |
- Format dates, files and arrays on the submissions overview and submissions details pages. |
| 145 |
- Allow cancelling a form's submit event in JavaScript (with `event.stopPropagation()`) to prevent form submission. |
| 146 |
|
| 147 |
|
| 148 |
#### 1.3.0 - May 28, 2018 |
| 149 |
|
| 150 |
**Fixes** |
| 151 |
|
| 152 |
- PHP notice because of namespace import outside of any namespace. |
| 153 |
- Removed usage of PHP 5.4+ feature. |
| 154 |
- Enforce HTTPS in form preview iframe when WP Admin uses HTTPS but public site does not. |
| 155 |
|
| 156 |
**Improvements** |
| 157 |
|
| 158 |
- Hook into GDPR Personal Data Export & Erase functionality. Requires WP 4.9.6. |
| 159 |
- Allow updating stored Submissions with empty values. [](https://github.com/ibericode/html-forms-code-snippets/blob/master/do-not-store-ip-address-and-user-agent.phpAllows clearing out IP address & user agents](https://github.com/ibericode/html-forms-code-snippets/blob/master/do-not-store-ip-address-and-user-agent.php](https://github.com/ibericode/html-forms-code-snippets/blob/master/do-not-store-ip-address-and-user-agent.php). |
| 160 |
- Internal field should start with underscore to hide it in column view. |
| 161 |
- Add for attribute to generated label element. Allows for simple [](https://github.com/ibericode/html-forms-code-snippets/blob/master/multi-step-form.htmlmulti-step forms](https://github.com/ibericode/html-forms-code-snippets/blob/master/multi-step-form.html](https://github.com/ibericode/html-forms-code-snippets/blob/master/multi-step-form.html). |
| 162 |
|
| 163 |
**Additions** |
| 164 |
|
| 165 |
- Add support for button clicks in conditional element logic. |
| 166 |
|
| 167 |
|
| 168 |
#### 1.2.0 - April 24, 2018 |
| 169 |
|
| 170 |
**Fixes** |
| 171 |
|
| 172 |
- Remove use of short-array syntax, which is only available in PHP 5.4 or later. |
| 173 |
|
| 174 |
**Improvements** |
| 175 |
|
| 176 |
- You can now hide columns on the submissions tab using screen options (in the top right corner). |
| 177 |
- You can now disable saving submissions on a per-form basis. |
| 178 |
- Allow pre-checking multiple checkboxes when using the field helper |
| 179 |
- Fields with matching URL parameter names will automatically be prefilled. |
| 180 |
- Use SVG icon in admin menu. |
| 181 |
|
| 182 |
**Additions** |
| 183 |
|
| 184 |
- Add simple action for subscribing to Mailchimp. Requires the [](https://wordpress.org/plugins/mailchimp-for-wp/Mailchimp for WordPress plugin](https://wordpress.org/plugins/mailchimp-for-wp/](https://wordpress.org/plugins/mailchimp-for-wp/). |
| 185 |
|
| 186 |
|
| 187 |
#### 1.1.5 - April 9, 2018 |
| 188 |
|
| 189 |
**Fixes** |
| 190 |
|
| 191 |
- Conditionally hidden fields are now ignored in server-side required field validation too. Thanks [](https://github.com/JeroenSormaniJeroen Sormani](https://github.com/JeroenSormani](https://github.com/JeroenSormani)! |
| 192 |
|
| 193 |
**Improvements** |
| 194 |
|
| 195 |
- Added foundational stuff for being able to handle file uploads. |
| 196 |
|
| 197 |
**Additions** |
| 198 |
|
| 199 |
- Added `hf_process_form` action to execute code before the form actions run. |
| 200 |
|
| 201 |
|
| 202 |
#### 1.1.4 - March 28, 2018 |
| 203 |
|
| 204 |
**Fixes** |
| 205 |
|
| 206 |
- Ensure form is fully functional in live preview. |
| 207 |
- Show all forms on the forms overview page (limit was 5). |
| 208 |
- Parse field variables in custom email headers. Thanks [](https://github.com/JeroenSormaniJeroen Sormani](https://github.com/JeroenSormani](https://github.com/JeroenSormani)! |
| 209 |
|
| 210 |
**Improvements** |
| 211 |
|
| 212 |
- You can now [](https://kb.htmlforms.io/javascript-events/bind JavaScript events](https://kb.htmlforms.io/javascript-events/](https://kb.htmlforms.io/javascript-events/) using the default browser API, eg `document.getElementById('hf-form-5').addEventListener('hf-success', ..);` |
| 213 |
- Only load JavaScript file on pages with a form on it. |
| 214 |
- Don't add line-breaks in HTML generated by the Field Builder. |
| 215 |
- [](https://kb.htmlforms.io/conditional-elements/Conditional elements](https://kb.htmlforms.io/conditional-elements/](https://kb.htmlforms.io/conditional-elements/) now accept wildcard values: `*` |
| 216 |
- Available field variables in email action settings are now clickable. |
| 217 |
|
| 218 |
**Additions** |
| 219 |
|
| 220 |
- Added several action & filter hooks to enable advanced functionality in [](https://www.htmlforms.io/premium-features/HTML Forms Premium](https://www.htmlforms.io/premium-features/](https://www.htmlforms.io/premium-features/). |
| 221 |
|
| 222 |
|
| 223 |
#### 1.1.3 - February 12, 2018 |
| 224 |
|
| 225 |
**Fixes** |
| 226 |
|
| 227 |
- Form preview was not working when WPML was activated. |
| 228 |
|
| 229 |
**Improvements** |
| 230 |
|
| 231 |
- Improved theme compatibility for the form preview. |
| 232 |
- Print submission details as JSON instead of PHP object. |
| 233 |
- Form messages are now added to the element as data attributes, so they can be used in JavaScript event callbacks. |
| 234 |
|
| 235 |
**Additions** |
| 236 |
|
| 237 |
- [](https://kb.htmlforms.io/conditional-elements/Conditional logic](https://kb.htmlforms.io/conditional-elements/](https://kb.htmlforms.io/conditional-elements/) now accepts multiple values, separated by the |-character. |
| 238 |
|
| 239 |
|
| 240 |
#### 1.1.2 - January 18, 2018 |
| 241 |
|
| 242 |
**Fixes** |
| 243 |
|
| 244 |
- Conditional elements visible in form preview. |
| 245 |
- WP_List_Table issue on forms overview page. |
| 246 |
|
| 247 |
**Improvements** |
| 248 |
|
| 249 |
- Allow disabling submission storage through a global setting. |
| 250 |
- Hide submissions tab when submission storage is disabled. |
| 251 |
- Prevent PHP notice if `$_SERVER` global is missing properties. |
| 252 |
- Update JavaScript dependencies. |
| 253 |
|
| 254 |
**Additions** |
| 255 |
|
| 256 |
- Filter: `hf_ignored_field_names` |
| 257 |
|
| 258 |
|
| 259 |
#### 1.1.1 - December 21, 2017 |
| 260 |
|
| 261 |
**Fixes** |
| 262 |
|
| 263 |
- Incorrect role capability for administrators. |
| 264 |
|
| 265 |
|
| 266 |
#### 1.1 - December 21, 2017 |
| 267 |
|
| 268 |
**Fixes** |
| 269 |
|
| 270 |
- JavaScript error in some older browser when submitting the form. |
| 271 |
|
| 272 |
**Improvements** |
| 273 |
|
| 274 |
- Use custom user capability base for editing & viewing forms. |
| 275 |
- Delay form response until a later hook so other plugins get a chance to hook in. |
| 276 |
- Disable client-side validation for conditional fields marked as required. |
| 277 |
|
| 278 |
**Additions** |
| 279 |
|
| 280 |
- Added live preview to the form editor. |
| 281 |
|
| 282 |
|
| 283 |
#### 1.0.6 - December 11, 2017 |
| 284 |
|
| 285 |
**Fixes** |
| 286 |
|
| 287 |
- Array replacements in email message were showing "Array" instead of a comma separated list of values. |
| 288 |
- Don't reset form when there are errors. Thanks [](https://github.com/JeroenSormaniJeroen Sormani](https://github.com/JeroenSormani](https://github.com/JeroenSormani)! |
| 289 |
|
| 290 |
**Additions** |
| 291 |
|
| 292 |
- You can now use certain [](https://kb.htmlforms.io/template-variables/template variables](https://kb.htmlforms.io/template-variables/](https://kb.htmlforms.io/template-variables/) in the form content which will be dynamically replaced. |
| 293 |
- Added `hf_validate_form_{$form_slug}` filter hook. |
| 294 |
- Added `hf_form_{$form_slug}_success` action hook. |
| 295 |
|
| 296 |
|
| 297 |
#### 1.0.5 - November 18, 2017 |
| 298 |
|
| 299 |
**Fixes** |
| 300 |
|
| 301 |
- Could not save more than one "Email" action. |
| 302 |
|
| 303 |
|
| 304 |
#### 1.0.4 - November 10, 2017 |
| 305 |
|
| 306 |
**Fixes** |
| 307 |
|
| 308 |
- Incompatibility with PHP versions before 5.6. |
| 309 |
- Data variables could not be placed on the same line. |
| 310 |
|
| 311 |
**Improvements** |
| 312 |
|
| 313 |
- Clear output buffer before sending AJAX response to prevent issues with response parsing. |
| 314 |
|
| 315 |
**Additions** |
| 316 |
|
| 317 |
- Added `hf_form_message_{$code}` filter hook. |
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
#### 1.0.3 - November 6, 2017 |
| 322 |
|
| 323 |
**Additions** |
| 324 |
|
| 325 |
- Added [](https://kb.htmlforms.io/conditional-elements/support for conditional elements](https://kb.htmlforms.io/conditional-elements/](https://kb.htmlforms.io/conditional-elements/) by using `data-show-if` and `data-hide-if` attributes. |
| 326 |
|
| 327 |
**Improvements** |
| 328 |
|
| 329 |
- Accept `id` argument in `[hf_form]` shortcode. |
| 330 |
- Catch errors in shortcode's `slug` attribute. |
| 331 |
- Allow changing form slug after initial form is saved. |
| 332 |
|
| 333 |
**Fixes** |
| 334 |
|
| 335 |
- Fixes stylesheet URL when option to load stylesheet is toggled. |
| 336 |
|
| 337 |
|
| 338 |
|
| 339 |
#### 1.0.2 - October 30, 2017 |
| 340 |
|
| 341 |
**Fixes** |
| 342 |
|
| 343 |
- Form validation always failing when form has 0 required fields. |
| 344 |
|
| 345 |
**Improvements** |
| 346 |
|
| 347 |
- Fake success response when honeypot validation fails. |
| 348 |
- Validate request by comparing size of POST array with number of form fields. |
| 349 |
- Ensure submit button never has label element when using the field helper. |
| 350 |
- Optimize URL generation of asset files on frontend. |
| 351 |
|
| 352 |
**Additions** |
| 353 |
|
| 354 |
- Added `hf_validate_form_request_size` filter hook. |
| 355 |
|
| 356 |
|
| 357 |
#### 1.0.1 - October 28, 2017 |
| 358 |
|
| 359 |
**Improvements** |
| 360 |
- Added SVG admin menu icon. |
| 361 |
- Field names are now sanitized before they are saved in the database. |
| 362 |
- Submit button was missing for default form fields. |
| 363 |
- Unneeded `<form>` tags are now stripped from the form before saving. |
| 364 |
|
| 365 |
**Additions** |
| 366 |
- Added `data-title` and `data-slug` attributes to the `<form>` element on the frontend. |
| 367 |
|
| 368 |
|
| 369 |
#### 1.0 - October 25, 2017 |
| 370 |
|
| 371 |
Introducing a first version of HTML Forms, a different approach to forms for WordPress sites. |
| 372 |
|
| 373 |
|
| 374 |
|