Skouter mortgage estimates. Web application with view written in PHP and Vue, but controller and models in Go.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

CHANGELOG.md 48 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294
  1. # v7.3.0
  2. ## 12/14/2023
  3. 1. [](#new)
  4. * Added XHR/Ajax form submission as an option in the form blueprint. See [Learn Forms](https://learn.getgrav.org/17/forms/forms/how-to-ajax-submission) for details.
  5. # v7.2.2
  6. ## 12/13/2023
  7. 1. [](#improved)
  8. * Add _inline errors_ for `file` field. Useful in combination with `form: no-validate: true` form setting.
  9. * Validate filename against `uploads_dangerous_extensions` when using the `save:` action
  10. 1. [](#bugfix)
  11. * Cleared 'basic captcha' value when invalid
  12. # v7.2.1
  13. ## 06/27/2023
  14. 1. [](#improved)
  15. * Added some optional debug output to help isolate form loading problems
  16. 1. [](#bugfix)
  17. * More robust fix for multi-language form caching
  18. # v7.2.0
  19. ## 06/21/2023
  20. 1. [](#bugfix)
  21. * Fixed a long-standing bug with cached forms not working properly in multi-language scenarios
  22. # v7.1.3
  23. ## 05/09/2023
  24. 1. [](#improved)
  25. * Removed `FILTER_SANITIZE_STRING` input filter in favor of `htmlspecialchars(strip_tags())`
  26. * Fixed a deprecated message when using `Route::_toString()`
  27. * Require Grav `v1.7.41` as it contains `GRAV_SANITIZE_STRING` constant
  28. # v7.1.2
  29. ## 01/08/2023
  30. 1. [](#bugfix)
  31. * Fixes issue with multiplication type BasicCaptcha Math Captcha [#587](https://github.com/getgrav/grav-plugin-form/issues/587)
  32. # v7.1.1
  33. ## 11/29/2022
  34. 1. [](#bugfix)
  35. * Fix missing blueprint entries for Turnstile configuration [#583](https://github.com/getgrav/grav-plugin-form/issues/583)
  36. # v7.1.0
  37. ## 11/16/2022
  38. 1. [](#new)
  39. * Added Cloudflare's `turnstile` captcha integration [documentation](https://learn.getgrav.org/17/forms/forms/fields-available#turnstile-field-cloudflare)
  40. # v7.0.2
  41. ## 10/05/2022
  42. 1. [](#bugfix)
  43. * Fix for modular form definitions at root-level (useful for storing shared forms)
  44. # v7.0.1
  45. ## 09/20/2022
  46. 1. [](#improved)
  47. * Provided some basic CSS styling for new captcha field
  48. # v7.0.0
  49. ## 09/20/2022
  50. 1. [](#new)
  51. * Added a new custom `basic-captcha` option with **character** and **math** puzzles. No 3rd-part service required.
  52. # v6.0.4
  53. ## 08/08/2022
  54. 1. [](#improved)
  55. * Added `attributes` to field [#573](https://github.com/getgrav/grav-plugin-form/pull/573)
  56. # v6.0.3
  57. ## 05/05/2022
  58. 1. [](#bugfix)
  59. * Regression: Fixed broken `addForm()` method
  60. # v6.0.2
  61. ## 05/02/2022
  62. 1. [](#bugfix)
  63. * Fixed `forms({ route: '/forms/_myform' })` not finding form from non-routable pages (second try)
  64. # v6.0.1
  65. ## 04/25/2022
  66. 1. [](#improved)
  67. * Improved `prepare_form_field()` twig method to include `plain_name`
  68. 1. [](#bugfix)
  69. * Fixed `columns` and `column` fields with `.dotted` variables inside to ignore columns and column names
  70. * Fixed `forms({ route: '/forms/_myform' })` not finding forms from non-routable pages
  71. # v6.0.0
  72. ## 03/28/2022
  73. 1. [](#improved)
  74. * Added log warning when trying to access form by non-unique name
  75. * Optimized form caching by not initializing the forms in `onPageProcessed` event anymore
  76. * **BACKWARD COMPATIBILITY**: As form initialization has been delayed, logic relaying on `onPageProcessed` with forms may not work anymore
  77. 1. [](#bugfix)
  78. * Fixed select field where option is iterable (#558)
  79. * Fixed `FormPlugin::getForm()` to properly search the current page first
  80. * Fixed `FormPlugin::getForm()` to ignore fallback if the page was given as parameter
  81. * Fixed dynamic forms to work with cache turned on
  82. * Fix nested `toggleable`: originalValue now checks with `??` instead of `is defined`
  83. # v5.1.7
  84. ## 03/14/2022
  85. 1. [](#new)
  86. * Added `access` support for buttons
  87. 2. [](#bugfix)
  88. * Fixed tabs in the frontend to ensure JS is loaded
  89. # v5.1.6
  90. ## 02/07/2022
  91. 1. [](#bugfix)
  92. * Fixed Select field when using OptGroups, not allowing key/values [#541](https://github.com/getgrav/grav-plugin-form/issues/541)
  93. * Support for translatable OptGroup labels in Select field [#540](https://github.com/getgrav/grav-plugin-form/issues/540)
  94. # v5.1.5
  95. ## 01/24/2022
  96. 1. [](#bugfix)
  97. * Fixed case in selectize field where custom new entries would not be stored in non `multiple` lists
  98. # v5.1.4
  99. ## 11/16/2021
  100. 1. [](#bugfix)
  101. * Fixed buttons no longer rendered [#537](https://github.com/getgrav/grav-plugin-form/issues/537)
  102. * Allow `select` field to customize `autocomplete` attribute
  103. # v5.1.3
  104. ## 10/26/2021
  105. 1. [](#new)
  106. * Require **Grav 1.7.24**
  107. * Added support to disable a form, making it readonly
  108. * Added `|value_and_label` Twig filter to convert options to value/label pairs
  109. 1. [](#improved)
  110. * Improved Twig function `include_form_field()` to allow the second parameter to be an array of layouts
  111. # v5.1.2
  112. ## 09/29/2021
  113. 1. [](#improved)
  114. * Improved support for Twig 2/3
  115. # v5.1.1
  116. ## 09/14/2021
  117. 1. [](#new)
  118. * Require **Grav 1.7.21**
  119. 1. [](#bugfix)
  120. * Fixed accidental admin plugin requirement for YAML filter in the form
  121. * Fixed `GravForm.config` JS to have correct `current_url` and `current_params` settings
  122. * Fixed custom file upload and remove routes
  123. * Fixed bug where uploading file has no effect [#349](https://github.com/getgrav/grav-plugin-form/issues/349)
  124. * Fixed field with numeric field name in `prepare_form_fields()` [#530](https://github.com/getgrav/grav-plugin-form/issues/530)
  125. # v5.1.0
  126. ## 08/31/2021
  127. 1. [](#new)
  128. * Require **Grav 1.7.19**
  129. * Added support for custom form layouts
  130. * Added Twig function `prepare_form_fields()` and `prepare_form_field()` to prepare form fields and field array
  131. * Added Twig function `include_form_field()` to get all include paths for the field type
  132. * Make `nonce` to a customizable field
  133. 1. [](#bugfix)
  134. * Fixed bad cookie value for remembering the position of nested tabs
  135. # v5.0.3
  136. ## 06/15/2021
  137. 1. [](#improved)
  138. * Removed the windows `\r\n` line breaks + extraneous escaping in `data.txt.twig`
  139. * Use `base64_encode` filter rather than function
  140. # v5.0.2
  141. ## 04/23/2021
  142. 1. [](#improved)
  143. * Better message for invalid nonce [#513](https://github.com/getgrav/grav-plugin-form/issues/513)
  144. * Better error if `Form::getPage()` gets called too early [#518](https://github.com/getgrav/grav-plugin-form/issues/518)
  145. * Added support for custom Toggle id
  146. # v5.0.1
  147. ## 03/17/2021
  148. 1. [](#improved)
  149. * Updated `de` language [#510](https://github.com/getgrav/grav-plugin-form/pull/510)
  150. * Better field type definitions for avatar and file fields
  151. 1. [](#bugfix)
  152. * Fixed toggle highlight when there's no value
  153. * Fixed wrong selected values in `select` field with integer and boolean values
  154. * Fixed changelog display [#502](https://github.com/getgrav/grav-plugin-form/pull/502)
  155. # v5.0.0
  156. ## 02/17/2021
  157. 1. [](#new)
  158. * Requires **Grav 1.7.0**
  159. * Allow admins to temporarily disable form process actions by setting the value to `false` [#481](https://github.com/getgrav/grav-plugin-form/pull/481)
  160. 1. [](#improved)
  161. * Add `id` attribute to hidden field [#495](https://github.com/getgrav/grav-plugin-form/pull/495)
  162. * Escape text as YAML in multi-line textarea [#464](https://github.com/getgrav/grav-plugin-form/pull/464)
  163. 1. [](#bugfix)
  164. * Fixed reCaptcha v3 incompatibility with multiple forms on the same page sharing different actions [#416](https://github.com/getgrav/grav-plugin-form/issues/416)
  165. * Toggle fields do not save `false` if they are `toggleable` [#497](https://github.com/getgrav/grav-plugin-form/issues/497)
  166. * Data template fixes [#494](https://github.com/getgrav/grav-plugin-form/pull/494)
  167. * Fix deprecated Twig method
  168. # v4.3.1
  169. ## 01/31/2021
  170. 1. [](#improved)
  171. * Updated deprecated `Twig_SimpleFunction` code
  172. * Added Lithuanian translation [#485](https://github.com/getgrav/grav-plugin-form/pull/485)
  173. 1. [](#bugfix)
  174. * Fixed state of the checkbox if no value is provided
  175. * Fixed evaluating default value in `hidden` field (thanks @NicoHood)
  176. * Fixed default value to come from the `Form` in overridable field (thanks @NicoHood)
  177. * Fix for disabling `client_side_validation` [#482](https://github.com/getgrav/grav-plugin-form/pull/482)
  178. * Fix for translations in `select` field in data template [#475](https://github.com/getgrav/grav-plugin-form/pull/475)
  179. * PHPDoc fixes
  180. # v4.3.0
  181. ## 12/14/2020
  182. 1. [](#new)
  183. * Added a new ‘condition’ attribute for tab for logic to process if it should display or not
  184. 1. [](#improved)
  185. * Added priority to form translations/config
  186. 1. [](#bugfix)
  187. * Fix admin access check [#463](https://github.com/getgrav/grav-plugin-form/pull/463)
  188. # v4.2.0
  189. ## 12/02/2020
  190. 1. [](#improved)
  191. * Added support for arbitrary `attributes` on `form`, `textarea` and `checkbox` and `buttons`. [#447](https://github.com/getgrav/grav-plugin-form/issues/447) [#448](https://github.com/getgrav/grav-plugin-form/issues/448)
  192. * Better support for array field key/value when either key or value are left empty
  193. * Allow data-* form parameters to be used as <form> attributes. [#336](https://github.com/getgrav/grav-plugin-form/pull/336)
  194. * Allow action param when including form partial [#410](https://github.com/getgrav/grav-plugin-form/pull/410)
  195. * Also support validate min/max for textarea [#455](https://github.com/getgrav/grav-plugin-form/pull/455)
  196. * Translate form labels also in text file [#444](https://github.com/getgrav/grav-plugin-form/pull/448)
  197. 1. [](#bugfix)
  198. * Fixed KeepAlive issue where too large of a session value would fire the keep alive immediately
  199. * Fixed stringable objects breaking the inputs
  200. * Remove unused route variable from `file` field
  201. * Fix condition for required attribute in toggle field [#451](https://github.com/getgrav/grav-plugin-form/pull/451)
  202. * Fix form data template when select field is set to multiple [#452](https://github.com/getgrav/grav-plugin-form/pull/452)
  203. * Fix has-errors for select and other fields [#454](https://github.com/getgrav/grav-plugin-form/pull/454)
  204. * Fix #453 section title level [#459](https://github.com/getgrav/grav-plugin-form/pull/459)
  205. # v4.1.2
  206. ## 10/07/2020
  207. 1. [](#bugfix)
  208. * Added some missing class attributes
  209. # v4.1.1
  210. ## 09/01/2020
  211. 1. [](#bugfix)
  212. * Key field should not escape the value
  213. # v4.1.0
  214. ## 07/29/2020
  215. 1. [](#new)
  216. * Support JSON based form submissions
  217. 1. [](#improved)
  218. * Improved handling of error messages with more details + translation [#428](https://github.com/getgrav/grav-plugin-form/pull/428) [#429](https://github.com/getgrav/grav-plugin-form/pull/429)
  219. * Various improvements for nested form data in `data.html.twig` and `data.txt.twig`
  220. * Use `|length` rather than `|count` twig filter
  221. * Various language updates
  222. 1. [](#bugfix)
  223. * Disabled the EXIF library for Dropzone for fixing the orientation as it was getting applied twice [#1923](https://github.com/getgrav/grav-plugin-admin/issues/1923)
  224. * Forked Dropzone fo fix issue with Resize + EXIF orientation [#1923](https://github.com/getgrav/grav-plugin-admin/issues/1923)
  225. # v4.0.10
  226. ## 06/08/2020
  227. 1. [](#improved)
  228. * Updated languages
  229. 1. [](#bugfix)
  230. * Fixed redirect causing empty form on homepage forms with no action set
  231. # v4.0.9
  232. ## 06/03/2020
  233. 1. [](#bugfix)
  234. * Fixed bad `id` attribute on `checkbox` field [#421](https://github.com/getgrav/grav-plugin-form/issues/421)
  235. * Show the `description` span even for an empty description [#313](https://github.com/getgrav/grav-plugin-form/pull/313)
  236. # v4.0.8
  237. ## 04/30/2020
  238. 1. [](#bugfix)
  239. * Fixed issue with `force_bool` in `toggle` field to be more robust
  240. # v4.0.7
  241. ## 04/27/2020
  242. 1. [](#new)
  243. * Added ability to hide form fields in `data.html.twig` and `data.txt.twig` with `field.store: false`
  244. 1. [](#improved)
  245. * Updated node dependencies
  246. * Added new `force_bool: true|false` option to `toggle` field to cast strings for use in BC situations
  247. 1. [](#bugfix)
  248. * Fix markdown links in changelog [#415](https://github.com/getgrav/grav-plugin-form/pull/415)
  249. # v4.0.6
  250. ## 03/19/2020
  251. 1. [](#new)
  252. * CHANGE: Form labels are now displayed in `raw` format so you can use HTML in them
  253. * Added support for `name` attribute on buttons [#411](https://github.com/getgrav/grav-plugin-form/issues/411)
  254. 1. [](#improved)
  255. * Added support for `classes` option in `avatar` field
  256. * Recompiled JS with latest NPM libraries
  257. 1. [](#bugfix)
  258. * Fixed password field outputting the contents to HTML (will now always be empty when loading the page)
  259. * Escape default output in `formdata.html.twig` [#384](https://github.com/getgrav/grav-plugin-form/issues/384)
  260. * Better JS rendering of captcha field scripts for VueJS template compatibility
  261. # v4.0.5
  262. ## 03/05/2020
  263. 1. [](#bugfix)
  264. * Fixed form actions that post to page anchors should not have current base_url added (e.g. `#contact-us`)
  265. * Fixed toggleable buttons no longer holding false state [#406](https://github.com/getgrav/grav-plugin-form/issues/406)
  266. # v4.0.4
  267. ## 02/25/2020
  268. 1. [](#bugfix)
  269. * Fix for `enctype` in multipart forms [#408](https://github.com/getgrav/grav-plugin-form/issues/408)
  270. # v4.0.3
  271. ## 02/11/2020
  272. 1. [](#new)
  273. * Pass phpstan level 1 tests
  274. # v4.0.2
  275. ## 02/03/2020
  276. 1. [](#improved)
  277. * Allow checkbox field to have custom value, default to 1
  278. 1. [](#bugfix)
  279. * Fixed `toggle` field not working with `toggleable: true`
  280. * Fixed fatal error when form type is disabled
  281. # v4.0.1
  282. ## 01/02/2020
  283. 1. [](#improved)
  284. * Improve Grav 1.7 support by not using deprecated `$page->modular()` call
  285. * Use form scope if it is defined
  286. 1. [](#bugfix)
  287. * Fixed bad HTML in select, radio, key, toggle, checkbox ad textarea when using tabindex attribute
  288. * Fixed bad looking `tabs` field with a single tab in admin
  289. # v4.0.0
  290. ## 11/06/2019
  291. 1. [](#new)
  292. * Added `tabindex` to global attributes of default field
  293. * Add ability to Sanitize SVGs on upload (Grav 1.7+ required)
  294. 1. [](#improved)
  295. * Deprecate `select_optgroup` as `select` can handle optgroups now
  296. * Added missing tabindex checks
  297. * Refactored field inheritance to make things more reliable
  298. * Removed jQuery dependency for the reCaptcha field and VanillaJS-ified it instead
  299. * Removed a stray `dump()` command
  300. * Refactored the base `templates/forms/default` twig templates to make things more extensible
  301. * Added a new `templates/forms/layouts` set of twit templates to allow for easier customization
  302. 1. [](#bugfix)
  303. * Fixed `Badly encoded JSON data` warning when uploading files [grav#2663](https://github.com/getgrav/grav/issues/2663)
  304. * Fixed a number of escaping issues [#368](https://github.com/getgrav/grav-plugin-form/issues/368)
  305. # v3.0.9
  306. ## 09/19/2019
  307. 1. [](#improved)
  308. * Removed jQuery dependency for the reCaptcha field and VanillaJS-ified it instead
  309. * Updated to ReCaptcha library version `1.2.3`
  310. 1. [](#bugfix)
  311. * Fixed `Badly encoded JSON data` warning when uploading files [grav#2663](https://github.com/getgrav/grav/issues/2663)
  312. # v3.0.8
  313. ## 08/14/2019
  314. 1. [](#improved)
  315. * Change form save action location to `user-data://` stream [#353](https://github.com/getgrav/grav-plugin-form/issues/353)
  316. * Updated `eu`, `fr` and `pl` language
  317. * Make `Form::initialize()` chainable
  318. * Added `folder` option to `save:` action with fallback
  319. 1. [](#bugfix)
  320. * Fixed Submit & Redirect not working as expected [#355](https://github.com/getgrav/grav-plugin-form/issues/355)
  321. * Fixed oversensitive refresh prevention [#354](https://github.com/getgrav/grav-plugin-form/issues/354)
  322. * Fixed issue with Form JS when pipeline is enabled [grav#2592](https://github.com/getgrav/grav/issues/2592)
  323. * Fixed `accept` for SVG in file field [#364](https://github.com/getgrav/grav-plugin-form/pull/364)
  324. * Fixed issue with plugin not returning expected form [#309](https://github.com/getgrav/grav-plugin-form/pull/309)
  325. * Fixed form message not showing up after reset process
  326. * Fixed form fields inside a single tab not using value from the form object if it is available
  327. * Fixed file form field failing resolution checks in certain circumstances
  328. # v3.0.7
  329. ## 07/01/2019
  330. 1. [](#bugfix)
  331. * Fixed file upload when `$grav['user']` is not set [#352](https://github.com/getgrav/grav-plugin-form/issues/352)
  332. * Fixed label markdown being escaped [#356](https://github.com/getgrav/grav-plugin-form/pull/356)
  333. # v3.0.6
  334. ## 06/24/2019
  335. 1. [](#bugfix)
  336. * Fixed regression breaking forms external to the page in some sites
  337. * Fixed regression with form action in sub-path folders
  338. # v3.0.5
  339. ## 06/21/2019
  340. 1. [](#new)
  341. * Added support for form state saving with dynamic unique id appended to the URL
  342. 1. [](#improved)
  343. * Avoid creating form state if there is no data to be saved
  344. 1. [](#bugfix)
  345. * Fixed missing check for maximum allowed files in `files` field
  346. * Fixed unique form ids getting cached, they should change on every page reload
  347. # v3.0.4
  348. ## 06/14/2019
  349. 1. [](#improved)
  350. * Captcha field: fail silently and display error in console if site_key was not defined
  351. * Support inline-errors, prepend, append in `textarea`
  352. 1. [](#bugfix)
  353. * Use less-strict comparison when checking version 3 [#344](https://github.com/getgrav/grav-plugin-form/issues/344)
  354. # v3.0.3
  355. ## 05/09/2019
  356. 1. [](#new)
  357. * Added Text `field.copy-to-clipboard` which can be used by admin plugin
  358. 1. [](#bugfix)
  359. * Fixed Flex route issue in list page
  360. * Fix flex-height of signature field
  361. * Fix for broken `field.recaptcha_site_key` [#344](https://github.com/getgrav/grav-plugin-form/issues/344)
  362. * Fix for checkbox data lang string [#343](https://github.com/getgrav/grav-plugin-form/issues/343)
  363. * Fix for duplicate inline error messages [#337](https://github.com/getgrav/grav-plugin-form/issues/337)
  364. * Fixed bad folder permissions when creating folder for file uploads
  365. # v3.0.2
  366. ## 04/22/2019
  367. 1. [](#new)
  368. * Support for Google Recaptcha theme (light/dark) doesn't work in v3 yet.
  369. 1. [](#improved)
  370. * Visual upgrade for form field descriptions [#335](https://github.com/getgrav/grav-plugin-form/pull/335)
  371. 1. [](#bugfix)
  372. * Fixed issue with `recaptcha_not_validated` property not being used
  373. # v3.0.1
  374. ## 04/15/2019
  375. 1. [](#new)
  376. * Added support for form task in blueprint
  377. 1. [](#bugfix)
  378. * Fix url field output in list view
  379. # v3.0.0
  380. ## 04/11/2019
  381. 1. [](#new)
  382. * Allow streams in `file` field widget [#119](https://github.com/getgrav/grav-plugin-form/issues/119)
  383. * Use new unified `|t` translate filter in all fields
  384. * Google reCAPTCHA v3 support added
  385. * Google reCAPTCHA v2 Invisible support added
  386. * Added mutliple forms with reCAPTCHA support
  387. * Form no longer extends `Grav\Common\Iterator` (may have some backward compatibility issues with plugins, likely not)
  388. * Form now uses `NestedArrayAccessWithGetters` (with '/' separator) and `FormTrait` traits
  389. * Added `view`, `key`, `ignore`, `section`, `toggle`, `tabs` and `tab` form fields
  390. * Added support for `toggleable` inputs, which can be disabled/enabled by user
  391. * Added `$grav['forms']` to allow plugins to better use forms [#307](https://github.com/getgrav/grav-plugin-form/pull/307)
  392. * Added support for custom form types
  393. * Forms can now remember their state after page reload with YAML `datasets: store-state: true` set in the fields
  394. * Added `clear-state` AJAX task
  395. * Added task to clear form flash
  396. * Added support for file-upload and file-remove tasks
  397. * Added ability to set a custom `clear_redirect_url` on a form
  398. * Added `Form::setMessage()` method
  399. * Added new form field templates for edit list table
  400. * Requires Grav 1.6.0-beta.7 (and optionally Admin 1.9.0-beta.7)
  401. * Backwards incompatibility: Do not allow static `Form::getNonce()` call, only `$form->getNonce()` works now
  402. * Backwards incompatibility: All form field twig files are required to extend `field.html.twig` to work properly
  403. * Allow using custom nonce field/action by setting `nonce.name` and `nonce.action` inside the form YAML
  404. * Added `html: true` support for form buttons (will not escape the button value)
  405. * Added `toggle`, `tabs` and `tab` form fields
  406. * Added support for toggleable inputs, which can be disabled/enabled by user
  407. * Added proper support for hiding form fields in blueprints by using dynamic property like `security@: admin.foobar` to any field
  408. 1. [](#improved)
  409. * Make fields `formname`, `uniqueid` and `honeypot` non-inputs in form validation
  410. * Update all Form classes to rely on `PageInterface` instead of `Page` class
  411. * Removed `media.upload_limit` references
  412. * Added field type `hidden` to `ip` and `timestamp` actions
  413. * Improved the `hidden` field logic to support `value` or `default` set
  414. * Set the message globally on `messages` object when using a redirect in form
  415. * Improved logic for finding the current form
  416. * Added support for data-sets in `textarea` and `select` fields
  417. * Simplify `shouldProcessForm()` logic
  418. * Do not cache flat forms list, regenerate it instead
  419. * Fixed some inconsistencies on how blueprints are handled
  420. * Improved uploads handling, added new `upload: true|false` process
  421. * Make `Form` implement `FormInterface`
  422. * Added `field.size` in `array`, `select`, and `textarea`
  423. * Enable forms in admin plugin
  424. * Removed submit of unchecked fields in frontend
  425. * Make sure that the images in the file field are not cached in browser
  426. * Updated code to use PHP 7.1 features
  427. * Added some extra blocks to `file` field to make it more extensible
  428. * Added `field.classes` to form field to allow customization
  429. * Used Google reCAPTCHA API all token validation
  430. * Better filename and mime type handling
  431. * Now using the new core Grav language prefix
  432. * Make all form fields to extend `field.html.twig`
  433. 1. [](#bugfix)
  434. * Fixed old way to access form name
  435. * Fixed minor bugs
  436. * Fixed null date/time in list view
  437. * Fixed forms not being cached properly
  438. * Fixed issue with `selectize`, automatically selecting an unintended value
  439. * Throw exception if you try to `add` to a file and don't provide `filename` [#324](https://github.com/getgrav/grav-plugin-form/issues/324)
  440. * Fixed file field saving with nested name
  441. * Fixed file saving if destination folder does not exist
  442. * Fixed FormFlash object not getting deleted on form post
  443. * Regression: Fixed ignored form action [#318](https://github.com/getgrav/grav-plugin-form/issues/318)
  444. * Regression: Fixed modular form submit not triggering the action sometimes
  445. * Fixed modular form submits without defined `action: /path` inside the form
  446. * Fixed form processing in nested modular pages
  447. * Fixed container fields breaking values from the child fields
  448. * Fixed form fields not accepting object values
  449. * Fixed some form fields having no value for nested field sets
  450. * Fixed double escaping of `file` type input JSON value
  451. * Fixed double locking of file when calling processor save
  452. * Fixed some missing backwards compatibility
  453. * Fixed some issues with flashed form
  454. * Fixed Twig 2 compatibility issue
  455. * Fixed files uploading before captcha check
  456. * Fixed files uploading before data has been stored
  457. * Fixed some issues with reCAPTCHA v3
  458. * Fixed error responses when file actions fail in the form
  459. * Pass unique_id when uploading files if available
  460. # v2.16.4
  461. ## 12/14/2018
  462. 1. [](#improved)
  463. * Better handling of invalid file names during upload
  464. * Better MIME type checking of files during file upload
  465. * Do not rely on jQuery for merging languages from form fields [#290](https://github.com/getgrav/grav-plugin-form/issues/290) [#291](https://github.com/getgrav/grav-plugin-form/issues/291)
  466. 2. [](#bugfix)
  467. * Remove jQuery dependency in form.html.twig (#290)
  468. 3. [](#new)
  469. * Added Object.assign-polyfill (#291)
  470. # v2.16.3
  471. ## 09/21/2018
  472. 1. [](#improved)
  473. * Use `Url:post()` to get the `$_POST` variable (allows common security checks/filtering for the POST data)
  474. * Various JS tweaks and enhancements
  475. 1. [](#bugfix)
  476. * Fixed issue where `select` set up as `multiple` and with `selectize: create: true` would not properly merge newly created values on rendering.
  477. # v2.16.2
  478. ## 08/23/2018
  479. 1. [](#improved)
  480. * Switched to new Grav `Yaml` class to support Native + Fallback YAML libraries
  481. * Simple styling fixes for `array` field
  482. 1. [](#bugfix)
  483. * Fixed issue with translations of placeholder text in `array` field
  484. # v2.16.1
  485. ## 08/20/2018
  486. 1. [](#new)
  487. * Fixed a regression issue with `file` & `array` field
  488. # v2.16.0
  489. ## 08/20/2018
  490. 1. [](#new)
  491. * Added new `form.keep_alive` option to keep session alive [#275](https://github.com/getgrav/grav-plugin-form/issues/275)
  492. * Added `array` field for frontend use
  493. 1. [](#improved)
  494. * Improving compatibility `autocomplete` spec [#274](https://github.com/getgrav/grav-plugin-form/pull/274)
  495. # v2.15.1
  496. ## 06/20/2018
  497. 1. [](#improved)
  498. * Including EXIF JS library in the modules dependencies to fix orientation when uploading images
  499. 1. [](#bugfix)
  500. * Fix HTML data template for checkboxes fields where 'use' property is "keys" [#258](https://github.com/getgrav/grav-plugin-form/pull/258)
  501. # v2.15.0
  502. ## 05/31/2018
  503. 1. [](#new)
  504. * Added support for `Uri::post()`
  505. * Added support for `autocapitalize`, `inputmode`, and `spellcheck` options in field definitions
  506. # v2.14.1
  507. ## 05/15/2018
  508. 1. [](#bugfix)
  509. * Fixed regression with select field, causing issues with filepicker field [grav-plugin-admin#1441](https://github.com/getgrav/grav-plugin-admin/issues/1441)
  510. # v2.14.0
  511. ## 05/11/2018
  512. 1. [](#new)
  513. * Make `pagemedia` field available outside of pages context
  514. * Added option on fields to disable displaying of label (`display_label: false`)
  515. * Moved Dropzone HTML into an overridable Twig template
  516. * Added support for image upload delete in Dropzone `file` field
  517. 1. [](#improved)
  518. * Added support for `optgroup` within select field
  519. * Save forms only once (stops extra work being done)
  520. * Allow file field to pass dropzone options
  521. * Added datasets support to fields
  522. * Added `field.classes` support to display field
  523. 1. [](#bugfix)
  524. * Removed overridden class in `password` field
  525. * Worked around forms being lost if form cache expired before page cache, see [#240](https://github.com/getgrav/grav-plugin-form/pull/240)
  526. * Fixed default form in dynamically created page if header uses `forms` instead of old `form` field
  527. * Escape placeholder text in default field
  528. # v2.13.3
  529. ## 04/13/2018
  530. 1. [](#new)
  531. * Added support to save form data in raw format (yaml or json)
  532. * Added new `timestamp` action to add a timestamp field
  533. # v2.13.2
  534. ## 04/12/2018
  535. 1. [](#new)
  536. * Added event `onFormPrepareValidation` to allow some pre-processing before form validation
  537. * Added new `postfix` and `dateraw` options to "Save" action
  538. 1. [](#improved)
  539. * Added support for `nest_id` boolean flag to `fieldset` field to nest sub-fields with name of fieldset
  540. * Added classes attribute to `spacer` field
  541. 1. [](#bugfix)
  542. * Fixed `Form::setFields()` causing validation to fail on added and removed fields
  543. # v2.13.1
  544. ## 03/21/2018
  545. 1. [](#improved)
  546. * CAPTCHA fallback to `cURL` if `Fopen` is not allowed [#224](https://github.com/getgrav/grav-plugin-form/pull/244)
  547. * Use `visibility:hidden` rather than `display:none` for honeypot field [#235](https://github.com/getgrav/grav-plugin-form/pull/235)
  548. * Added support for markdown in checkbox field [#233](https://github.com/getgrav/grav-plugin-form/pull/233)
  549. * Added option to control `inline_css: true|false` for fields such as honeypot
  550. * Added class and CSS for honeypot field
  551. # v2.13.0
  552. ## 03/09/2018
  553. 1. [](#new)
  554. * Forced registration of `Form` page template for admin
  555. * Implemented support for `resolution` setting for images in file field
  556. * Implemented support for `resizeWidth`, `resizeHeight`, `resizeQuality` and updated Dropzone to latest version
  557. * Added a new `signature` field
  558. 1. [](#improved)
  559. * Force an `onPageProcessed()` event if page cache expires before form cache [#240](https://github.com/getgrav/grav-plugin-form/pull/240)
  560. 1. [](#bugfix)
  561. * Fixed an issue where unlimited size `0` was not being set properly in File field
  562. * `field.description` now translated and displays properly
  563. # v2.12.0
  564. ## 02/22/2018
  565. 1. [](#new)
  566. * Added toggle to enable/disable client-side HTML5 validation
  567. * Added toggle to enable/disable inline-error messages
  568. 1. [](#improved)
  569. * Reformatted `form.php` plugin class for better readability
  570. 1. [](#bugfix)
  571. * Fixed an issue with in-content Twig forms not working because forms were not initialized yet
  572. # v2.11.5
  573. ## 02/16/2018
  574. 1. [](#new)
  575. * Added support for `form: process: - call: ['Class', 'method']` for custom form handling
  576. 1. [](#bugfix)
  577. * Fixed regression in v2.11.4: Call to a member function post() on null [grav#1720](https://github.com/getgrav/grav/issues/1720)
  578. # v2.11.4
  579. ## 02/15/2018
  580. 1. [](#improved)
  581. * Stopped Chrome from auto-completing admin user profile form [grav#1847](https://github.com/getgrav/grav/issues/1847)
  582. * Start using composer to autoload classes
  583. * Added support for `switch` to be treated as checkbox
  584. 1. [](#bugfix)
  585. * Fixed missing form submit in dynamically created pages
  586. # v2.11.3
  587. ## 01/31/2018
  588. 1. [](#new)
  589. * Added support for `file` in **Display** field. Allows the ability to read a file and output it, works in combination with `|markdown` filter
  590. * Added `minlength` and `maxlength` to **Textarea** field [#231](https://github.com/getgrav/grav-plugin-form/pull/231)
  591. # v2.11.2
  592. ## 01/22/2018
  593. 1. [](#new)
  594. * Added support for markdown in all form fields for `label`, `help`, and `description` when `markdown: true` is set on field
  595. # v2.11.1
  596. ## 12/18/2017
  597. 1. [](#improved)
  598. * Updated default fields to make them more consistent with class names
  599. # v2.11.0
  600. ## 12/05/2017
  601. 1. [](#new)
  602. * Added ability to set `novalidate: true` on form definition to turn off all HTML5 form validation
  603. 1. [](#improved)
  604. * Improved logic to handle dynamically added forms to be more reliable
  605. * Added Dutch Translation [#207](https://github.com/getgrav/grav-plugin-form/pull/207)
  606. * Improved both HTML and JSON error output by utilizing `form.status`
  607. * Code Cleanup
  608. 1. [](#bugfix)
  609. * Fix AJAX response message and wrong status [#211](https://github.com/getgrav/grav-plugin-form/pull/211)
  610. * Escaped YAML to form save action to prevent parsing errors [#206](https://github.com/getgrav/grav-plugin-form/pull/206)
  611. * Fixed RU translations [#204](https://github.com/getgrav/grav-plugin-form/pull/204)
  612. * Fixed nonce check fail not setting status to `error` [#213](https://github.com/getgrav/grav-plugin-form/issues/213)
  613. * Fixed validation fail not setting status to `error` [#209](https://github.com/getgrav/grav-plugin-form/issues/209)
  614. * Catch ValidationException to avoid potential fatal error
  615. * Fixed regression issue on reset fields
  616. * Removed `required` attribute in individual checkboxes as it forces all to be checked
  617. * Security fix to ensure file uploads are not manipulated mid-post - thnx @FLH!
  618. # v2.10.0
  619. ## 10/26/2017
  620. 1. [](#new)
  621. * Added ability to 'remember' field values in cookie between submissions [#200](https://github.com/getgrav/grav-plugin-form/pull/200)
  622. 1. [](#improved)
  623. * Added back improved `filesize` option that falls back to PHP file upload limits by default [#202](https://github.com/getgrav/grav-plugin-form/issues/202)
  624. * Added missing file upload options into blueprints and language files
  625. * Added the ability for a form to have an `http_response_code` and use it for `form-messages.html.twig` (requires Grav v1.3.6+)
  626. # v2.9.3
  627. ## 10/11/2017
  628. 1. [](#improved)
  629. * Removed `filesize` plugin configuration in favor of `system.media.upload_limit`
  630. * Consolidated `field.classes` and `field.wrapper_classes` in radio/checkbox/checkboxes [#193](https://github.com/getgrav/grav-plugin-form/issues/)
  631. * Remove trailing slash from form action [#195](https://github.com/getgrav/grav-plugin-form/issues/195)
  632. * Improved `honeypot` validation check [#198](https://github.com/getgrav/grav-plugin-form/issues/198)
  633. # v2.9.2
  634. ## 09/30/2017
  635. 1. [](#improved)
  636. * Improved Polish translation
  637. 1. [](#bugfix)
  638. * Added missing `@input: false` attributes to some non-display fields [#189](https://github.com/getgrav/grav-plugin-form/issues/189)
  639. # v2.9.1
  640. ## 09/14/2017
  641. 1. [](#bugfix)
  642. * Fixed backwards compatibility issue with conditional field [#188](https://github.com/getgrav/grav-plugin-form/pull/188)
  643. # v2.9.0
  644. ## 09/07/2017
  645. 1. [](#new)
  646. * Added **Refresh Prevention** capabilities (Not enabled by default) [#184](https://github.com/getgrav/grav-plugin-form/issues/184)
  647. * Added support for field `attributes` [#176](https://github.com/getgrav/grav-plugin-form/pull/176)
  648. * Added global variables for setting form classes
  649. * Added support for new `select_optgroup` form field [#165](https://github.com/getgrav/grav-plugin-form/issues/165)
  650. 1. [](#improved)
  651. * Moved messages output into partial to allow style overriding
  652. * Logic cleanup
  653. * Updated Italian and Russian translations
  654. 1. [](#bugfix)
  655. * Fixed an issue with conditional field not always displaying properly
  656. * Only add Twig form variable if not already set
  657. * Fixed issue with multiple forms on a page failing on Captcha client-side validation [#182](https://github.com/getgrav/grav-plugin-form/issues/182)
  658. * Fixed issue with Ajax forms return full form HTML on error [#163](https://github.com/getgrav/grav-plugin-form/issues/163)
  659. # v2.8.2
  660. ## 08/18/2017
  661. 1. [](#new)
  662. * Added new `columns` and `column` fields for controlled form layout
  663. # v2.8.1
  664. ## 08/15/2017
  665. 1. [](#improved)
  666. * Added extra class support to the default field for more flexible styling
  667. # v2.8.0
  668. ## 07/16/2017
  669. 1. [](#bugfix)
  670. * Fixed a typo in the spanish translation [#167](https://github.com/getgrav/grav-plugin-form/pull/167)
  671. # v2.8.0-rc.2
  672. ## 06/22/2017
  673. 1. [](#improved)
  674. * Add default client-side validation for captcha, with error popup [#139](https://github.com/getgrav/grav-plugin-form/issues/139)
  675. * Added key observe for select
  676. * Added Czech translation
  677. 1. [](#bugfix)
  678. * Bug fix for radio type form field [#154](https://github.com/getgrav/grav-plugin-form/pull/154)
  679. * Remove double escaping [#155](https://github.com/getgrav/grav-plugin-form/issues/154)
  680. # v2.8.0-rc.1
  681. ## 05/22/2017
  682. 1. [](#new)
  683. * Bundled as RC release for Grav/Admin RC releases
  684. # v2.7.1
  685. ## 05/22/2017
  686. 1. [](#improved)
  687. * Force modular sub-pages with forms to set `$never_cache_twig = true` to improve form processing reliability [#153](https://github.com/getgrav/grav-plugin-form/issues/153)
  688. * Use new `Utils::getPagePathFromToken()` method
  689. # v2.7.0
  690. ## 05/16/2017
  691. 1. [](#bugfix)
  692. * Fix issue with dynamically added forms (Registration, Profile, Comments, etc) not processed [#149](https://github.com/getgrav/grav-plugin-form/issues/149)
  693. * Fixed issue with nested values not being repopulated on form error [#140](https://github.com/getgrav/grav-plugin-form/issues/140)
  694. # v2.6.0
  695. ## 05/04/2017
  696. 1. [](#new)
  697. * Allow form item replacement in redirect location [#144](https://github.com/getgrav/grav-plugin-form/issues/144)
  698. 1. [](#bugfix)
  699. * Fix regression with file uploads introduced in 2.5.0
  700. # v2.5.0
  701. ## 04/24/2017
  702. 1. [](#new)
  703. * Support proper form handling with nested fields [#141](https://github.com/getgrav/grav-plugin-form/issues/141)
  704. 1. [](#bugfix)
  705. * Added check for valid Grav forms before trying to create a form object
  706. # v2.4.0
  707. ## 04/19/2017
  708. 1. [](#new)
  709. * Added the ability for front-end forms to use advanced blueprint features such as `data-*@` and `config-*@`
  710. * Added support for dynamically added pages to process forms properly
  711. * Added a new avatar field for displaying account avatar
  712. * Added method to get all `data` from a form
  713. * Support `task` in button types
  714. 1. [](#improved)
  715. * Added `step` to range field [#136](https://github.com/getgrav/grav-plugin-form/issues/136)
  716. * Added a new default ajax handler twig template
  717. * Moved twig events to always process even if forms are not defined
  718. * Some code cleanup
  719. * Handle `null` with session-based form
  720. * Added support for append/prepend to number field
  721. 1. [](#bugfix)
  722. * Always process form events as long as a `$_POST` exists [login #101](https://github.com/getgrav/grav-plugin-login/issues/101)
  723. * Various fixes for `file` field
  724. * Allow manually added pages to process forms and upload files
  725. * Fixed issue with nested fileds not showing up in `data.*.twig` templates
  726. # v2.3.1
  727. ## 03/23/2017
  728. 1. [](#bugfix)
  729. * Only include `outerclasses` DIV if defined [#135](https://github.com/getgrav/grav-plugin-form/issues/135)
  730. # v2.3.0
  731. ## 03/17/2017
  732. 1. [](#new)
  733. * Ability to process any form on any page via `action:`. Super useful if you want to handle form processing on some other non-form page (or Ajax)
  734. * Added the ability for the form to set the `template:` to use to render the form processing response.
  735. 1. [](#bugfix)
  736. * Fix `number` field so it works with min value `0` [#130](https://github.com/getgrav/grav-plugin-form/issues/130)
  737. # v2.2.0
  738. ## 03/13/2017
  739. 1. [](#new)
  740. * Added new `fieldset` form field [#125](https://github.com/getgrav/grav-plugin-form/issues/125)
  741. * Added new `conditional form field` to show fields only if some `condition` is set
  742. 1. [](#improved)
  743. * Added the option to have outer-classes on buttons [#124](https://github.com/getgrav/grav-plugin-form/issues/124)
  744. * Added the option to disable fields label if not defined [#126](https://github.com/getgrav/grav-plugin-form/issues/126)
  745. # v2.1.1
  746. ## 02/17/2017
  747. 1. [](#improved)
  748. * Better default output for select, checkbox and checkboxes fields in the form destination page and in the emails sent via form submit [#121](https://github.com/getgrav/grav-plugin-form/issues/121)
  749. # v2.1.0
  750. ## 02/10/2017
  751. 1. [](#improved)
  752. * Reworked logic so form caching is based on `Pages::getPagesCacheId()`
  753. * Added `url` option for button field
  754. 1. [](#bugfix)
  755. * Fixed issue with `honeypot` field not throwing exception properly
  756. # v2.0.10
  757. ## 02/08/2017
  758. 1. [](#improved)
  759. * Optimistically set 'status' to `success` when requesting a form via Ajax. Form processing listeners should take care of setting status to something else
  760. 1. [](#bugfix)
  761. * File uploads are now adding a `__form-file-uploader__` POST field to better allow identifying them with Ajax
  762. * Require jQuery when using the File field, as it's needed by the form.min.js file required in the file upload functionality
  763. # v2.0.9
  764. ## 01/24/2017
  765. 1. [](#bugfix)
  766. * Translate the labels in data.html.twig [https://github.com/getgrav/grav-plugin-comments/issues/38](https://github.com/getgrav/grav-plugin-comments/issues/38)
  767. * Fixed file input when `System` > `Twig` > `Autoescape` is set to `Yes`
  768. # v2.0.8
  769. ## 12/13/2016
  770. 1. [](#new)
  771. * RC released as stable
  772. * Added a new `honeypot` field for form anti-spam protection
  773. # v2.0.8-rc.1
  774. ## 11/26/2016
  775. 1. [](#bugfix)
  776. * Fixed Forms 2.0 changes for registration form [#101](https://github.com/getgrav/grav-plugin-form/issues/101)
  777. * Fixed errant reference to Grav DI container in Form#getPagePathFromToken [#105](https://github.com/getgrav/grav-plugin-form/issues/105)
  778. * Fixed issue with spacer fields being displayed first, not in order [#104](https://github.com/getgrav/grav-plugin-form/issues/104)
  779. # v2.0.7
  780. ## 11/17/2016
  781. 1. [](#improved)
  782. * Added method to set all data in a form
  783. * Added params to form action URL
  784. * Added ability to add ids to buttons and to set them disabled
  785. 1. [](#bugfix)
  786. * Moved Files Upload GC logic to function in front-end only
  787. # v2.0.6
  788. ## 10/19/2016
  789. 1. [](#bugfix)
  790. * Fixed translations for `display` field
  791. * Fixed [#95](https://github.com/getgrav/grav-plugin-form/issues/95) multilanguage forms submission
  792. * Fixed duplicate textarea class tag [#98](https://github.com/getgrav/grav-plugin-form/issues/98)
  793. # v2.0.5
  794. ## 09/15/2016
  795. 1. [](#bugfix)
  796. * Fix passing updating the header through event, no need for return value
  797. # v2.0.4
  798. ## 09/15/2016
  799. 1. [](#improved)
  800. * Allow filling the page header form dynamically (e.g. use case: Comments plugin)
  801. # v2.0.3
  802. ## 09/12/2016
  803. 1. [](#improved)
  804. * Use `Page::slug()` for form name if not set in the form itself (better backwards compatibility)
  805. # v2.0.2
  806. ## 09/08/2016
  807. 1. [](#improved)
  808. * Added support for Grav's autoescape twig setting
  809. * Allow to add additional markup fields in form and field twig overrides
  810. * Updated the french language translation
  811. # v2.0.1
  812. ## 09/07/2016
  813. 1. [](#bugfix)
  814. * Fixed a backwards compatibility issue with Admin forms
  815. # v2.0.0
  816. ## 09/07/2016
  817. 1. [](#new)
  818. * Forms now supports multiple forms per page!
  819. * Access forms from any other page within the current page
  820. * Instantiate forms directly in page content with Twig processing enabled
  821. * New Twig function to get forms data from any other page
  822. * Ability to use Twig in saved filename
  823. * Reworked the `file` field. All files get uploaded via Ajax and are stored upon Submit. Fully backward compatible, `file` field now includes also a `limit` and `filesize` option. The former determines how many files are allowed to be uploaded when in combination with `multiple: true` (default: 10), the latter determines the file size limit (in MB) allowed for each file (default: 5MB)
  824. 1. [](#improved)
  825. * Added several missing HTML5 form input field types [#87](https://github.com/getgrav/grav-plugin-form/issues/87)
  826. * Added Support for CSS id in form definition
  827. # v1.3.2
  828. ## 08/10/2016
  829. 1. [](#improved)
  830. * Added Romanian translation
  831. 1. [](#bugfix)
  832. * Fixed an issue with Recaptcha secret throwing errors [#84](https://github.com/getgrav/grav-plugin-form/pull/84)
  833. # v1.3.1
  834. ## 07/27/2016
  835. 1. [](#improved)
  836. * Added support for multiple emails in `email` field (add `multiple: true` to enable)
  837. 1. [](#bugfix)
  838. * Fixed backward incompatibility with forms submission and data retrieval [getgrav/grav#933](https://github.com/getgrav/grav/issues/933)
  839. # v1.3.0
  840. ## 07/14/2016
  841. 1. [](#improved)
  842. * When uploading a file through a form, if the file is already existing prepend the current day and time to the filename instead of overwriting it.
  843. # v1.3.0-rc.4
  844. ## 06/21/2016
  845. 1. [](#bugfix)
  846. * Fixed running on Grav 1.0.x
  847. # v1.3.0-rc.3
  848. ## 06/17/2016
  849. 1. [](#new)
  850. * Set hints for checkboxes options and allow field descriptions
  851. # v1.3.0-rc.2
  852. ## 06/08/2016
  853. 1. [](#new)
  854. * Allow to process Twig in a hidden field, by setting `evaluate: true`
  855. # v1.3.0-rc.1
  856. ## 06/01/2016
  857. 1. [](#improved)
  858. * French updated
  859. # v1.3.0-beta.6
  860. ## 05/23/2016
  861. 1. [](#new)
  862. * Added support for advanced blueprint functionality in forms
  863. * Added site-wide form options to set Google Captcha site + secret keys [#34](https://github.com/getgrav/grav-plugin-form/pull/34)
  864. * Session-based 'flash' storage of form for redirects [#48](https://github.com/getgrav/grav-plugin-form/issues/48)
  865. * Added ability to **append** to file if you include a `process: save: body:` template attribute [#65](https://github.com/getgrav/grav-plugin-form/issues/65)
  866. 1. [](#improved)
  867. * Support `keyname` form format like admin forms
  868. * Added backwards compatibility for Captcha field
  869. * Added 'markdown-notices' style output for better errors
  870. * Added `Forms::getValue()` method to retrieve values programatically
  871. * Changed `datetime` form field to simply extend `text` until implemented
  872. * Updated french language
  873. 1. [](#bugfix)
  874. * Refactored the files upload logic
  875. * Missing Language string
  876. * Fixed errors not getting output
  877. # v1.3.0-beta.5
  878. ## 05/12/2016
  879. 1. [](#improved)
  880. * Moved form/field.html.twig file to the default folder, to be more easily extended in themes
  881. # v1.3.0-beta.4
  882. ## 05/04/2016
  883. 1. [](#new)
  884. * Added support for `prepend` and `append` field attributes for Text input
  885. # v1.3.0-beta.3
  886. ## 05/03/2016
  887. 1. [](#bugfix)
  888. * Fix for select field admin translation
  889. # v1.3.0-beta.2
  890. ## 04/27/2016
  891. 1. [](#bugfix)
  892. * Fix for autoescape in spacer and display form fields
  893. * Fix issue with form reset action [#66](https://github.com/getgrav/grav-plugin-form/pull/66)
  894. # v1.3.0-beta.1
  895. ## 04/20/2016
  896. 1. [](#new)
  897. * Added the HTML5 `range` input field with `min` and `max` parameters
  898. 1. [](#improved)
  899. * Allow to override classes in Form definition for the form element
  900. * Add more blocks in the Form twig template, so classes can be overridden more easily in themes
  901. * Reworked some fields to fit the new Admin
  902. * Use `scope` for form fields to allow fields to be excluded from the data by adding `input@: false` to their definition
  903. * Added german translation
  904. * Allow to add inline Twig to the form message definition
  905. 1. [](#bugfix)
  906. * Fixed the form action URL for home page forms
  907. * Fix stopping form events propagation, correctly stop when one event is stopped
  908. * Allow to translate the fields placeholders and the form message
  909. * Fix captcha javascript function ordering. Also, render it in the site active language
  910. * Support attribute `for="id"` on label for checkbox
  911. * Fix select fields with the multiple option enabled
  912. * Fixed select options escaping with autoescape on - [#502](https://github.com/getgrav/grav-plugin-admin/issues/502)
  913. # v1.2.2
  914. ## 02/11/2016
  915. 1. [](#bugfix)
  916. * Fixed case issue when including form file.
  917. # v1.2.1
  918. ## 02/11/2016
  919. 1. [](#new)
  920. * Allow placeholder for **select** field
  921. 1. [](#improved)
  922. * Use common language strings in blueprints
  923. * Use `for` attribute in labels
  924. * Improved `README.md`
  925. * Code lint
  926. 1. [](#bugfix)
  927. * Moved `nl2br` to correct place or will break for arrays
  928. # v1.2.0
  929. ## 01/06/2016
  930. 1. [](#bugfix)
  931. * Correctly merge the file field configuration
  932. * restore full file information save
  933. # v1.1.0
  934. ## 12/18/2015
  935. 1. [](#new)
  936. * Croatian translation
  937. * Added id, style, and disabled options to select fields
  938. 1. [](#improved)
  939. * Allow adding form labels and help text as lang strings
  940. * Allow translating field content
  941. * Allow translating button and checkbox labels
  942. * Allow adding classes to the form field container with `field.outerclasses`
  943. * Updated French translation
  944. 1. [](#bugfix)
  945. * Fixed error message on file upload
  946. * Fixed overriding defaults for the file type in forms
  947. # v1.0.3
  948. ## 12/11/2015
  949. 1. [](#improved)
  950. * Updated languages
  951. * Allow an action to stop processing
  952. 1. [](#bugfix)
  953. * Fix captcha validation
  954. * Fix issue where Form was unsetting valid page
  955. # v1.0.2
  956. ## 12/01/2015
  957. 1. [](#bugfix)
  958. * Fixed merge of defaults settings
  959. * Support for arrays in `data.txt.twig`
  960. * Fixed blueprint for admin
  961. # v1.0.1
  962. ## 12/01/2015
  963. 1. [](#new)
  964. * New **file upload** field
  965. * Added modular form template
  966. * Spanish translation
  967. * Hungarian translation
  968. * Italian translation
  969. # v1.0.0
  970. ## 11/21/2015
  971. 1. [](#new)
  972. * Server-side validation of forms #11
  973. * Added french translation
  974. * Added **nonce** form security
  975. 1. [](#improved)
  976. * Show a more meaningful error when the display page is not found
  977. * Added links to learn site for form examples
  978. * Label can be omitted
  979. * Allow user to set the CSS class for buttons
  980. 1. [](#bugfix)
  981. * Fixed multi-language forms
  982. * Checkbox is translatable
  983. * Minor fixes
  984. # v0.6.0
  985. ## 10/21/2015
  986. 1. [](#bugfix)
  987. * Fixed for missing attributes in textarea field
  988. * Fixed checkbox inputs
  989. # v0.5.0
  990. ## 10/15/2015
  991. 1. [](#new)
  992. * New `operation` param to allow different file saving strategies
  993. * Ability to add new file saving strategies
  994. * Now calls a `process()` method during form processing
  995. 1. [](#improved)
  996. * Added server-side captcha validation and removed front-end validation
  997. * Allow `filename` instead of `prefix`, `format` + `extension`
  998. 1. [](#bugfix)
  999. * Fixed radio inputs
  1000. # v0.4.0
  1001. ## 9/16/2015
  1002. 1. [](#new)
  1003. * PHP server-side form validation
  1004. * Added new Google Catpcha field with front-end validation
  1005. 1. [](#improved)
  1006. * Add defaults for forms, moved from the themes to the Form plugin
  1007. * Store multi-line fields with line endings converted to HTML
  1008. # v0.3.0
  1009. ## 9/11/2015
  1010. 1. [](#improved)
  1011. * Refactored all the forms fields
  1012. # v0.2.1
  1013. ## 08/24/2015
  1014. 1. [](#improved)
  1015. * Translated tooltips
  1016. # v0.2.0
  1017. ## 08/11/2015
  1018. 1. [](#improved)
  1019. * Disable `enable` in admin
  1020. # v0.1.0
  1021. ## 08/04/2015
  1022. 1. [](#new)
  1023. * ChangeLog started...